Knowledgize

Command-Z

Undo steps back through your recent changes; most apps remember many levels, so you can keep pressing it. Shift-Command-Z redoes what you just undid.