You can undo your last edit operation if you change your mind, and redo an edit you have undone.
Choose Edit > Undo (or press Command-Z).
Choose Edit > Redo (or press Shift-Command-Z).