To get Ctrl Z on a Mac to undo the last action, simply press Command + Z on your Mac keyboard or select Edit > Undo (from the Edit menu at the top of your screen).