You can undo any changes or redo them if you change your mind.
Undo the last action: Choose Edit > Undo from the Edit menu at the top of the screen, or press Command-Z.
Redo the last action you undid: Choose Edit > Redo from the Edit menu at the top of the screen, or press Command-Shift-Z.