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