The undo button (or its shortcut <ctrl-z>) will undo any last change if possible.
The undo-button becomes active after any change.