Edit > Undo

Reverses the effects of the previous command.

See the Miscellaneous section of Preferences > General Preferences for related options.