Is there an "Undo" button?

Is there a quick way to undo the last command entered? Like the “Undo” button on MS Word?

You can use the shortcut cmd+z or click on the option undo in the popup window

and in case you are on mobile you can use the toolbar