Question: how to undo on mac?
Answer: Undo the last action: Choose Edit > Undo (from the Edit menu at the top of your screen), or press Command-Z on your keyboard. Redo the last action you undid: Choose Edit > Redo, or press Command-Shift-Z.