Command Z is an undo command. It reverses the most recent action taken in a software program. For example, if you delete a paragraph in a document, pressing Command Z will undo the delete and restore the paragraph. To use Command Z, simply press the key combination of Command (⌘) + Z on a Mac or Control (Ctrl) + Z on a PC.