To undo the last edit action, choose Edit -> Undo.
If you later decide that you do not want to undo the action, choose Edit -> Redo.