Use Edit -> Undo (or Ctrl+Z) to undo the most recently performed action. Undo can be used several times in a row to undo progressively older actions.

Use Edit -> Redo (or Ctrl+Y) to undo an undo action.