Question: what does command z do?
Answer: In most Apple Macintosh applications, the shortcut for the Undo command is Command-Z, and the shortcut for Redo is Command-Shift-Z or Command-Y. On all platforms, the Undo/Redo functions can also be accessed via the Edit menu.