Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Command Z on Windows: How to Undo (and Redo) Properly

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Command Z does not exist on Windows. Windows uses Ctrl + Z for undo, and the equivalent redo shortcut is Ctrl + Y. If you are coming from a Mac and keep pressing the Command key (which Windows keyboards label as the Windows key), nothing will happen. The fix is simple: use Ctrl instead of Command, and use Ctrl + Y or Ctrl + Shift + Z to redo. This guide explains where undo works, where it does not, and what to do when Ctrl + Z fails.

What You'll Need

  • A Windows PC with a standard keyboard that has a Ctrl key (bottom left, next to the Windows key).
  • The application you want to undo in open and focused. Undo only affects the active app, not the whole system.
  • No extra software. Undo and redo are built into Windows and most Windows programs.

Step-by-Step

  1. Identify the correct key. On a Windows keyboard, the key to the left of the spacebar is Ctrl. The key with the Windows logo is the Windows key, not Command. There is no Command key on a standard Windows keyboard.
  2. Press Ctrl + Z to undo. Hold Ctrl, tap Z once, then release both. Each press usually undoes one action, so press it repeatedly to step backwards through recent changes.
  3. Press Ctrl + Y to redo. If you undid too much, Ctrl + Y reapplies the last undone action. Many programs also accept Ctrl + Shift + Z as redo, which is the Mac-style combination adapted to Windows.
  4. Confirm the app supports undo. Ctrl + Z works in File Explorer (renaming, moving, deleting files), Microsoft Word, Excel, PowerPoint, Notepad, most browsers (in text fields), and most image editors. It does not undo actions in every program, and it does not undo system-level changes such as installing software or changing Windows settings.
  5. Use the app's own menu if the shortcut fails. Open the Edit menu or the app's main menu and look for Undo or Redo. In apps with a ribbon, such as Word or Excel, the Undo and Redo arrows sit in the Quick Access Toolbar at the top left. In File Explorer, the undo option appears in the toolbar as a curved arrow.
  6. Check where focus is. Keyboard shortcuts go to the window that has focus. Click inside the document or file list first, then press Ctrl + Z. If a dialog box is open, close it or press Esc before trying again.
  7. Know the limits. Undo history is per app and is cleared when you close the program. In File Explorer, undo works for recent file operations but not after a restart. Deleted files sent to the Recycle Bin can be restored from there if undo is no longer available.

Common Mistakes

  • Pressing the Windows key plus Z. That is not undo. On some keyboards it opens the Windows widgets panel or does nothing in the current app.
  • Expecting Command Z to work because the keyboard has a Command key. Only Apple keyboards have Command. Third-party Windows keyboards sometimes label the Windows key with a logo; it still does not act as Command.
  • Assuming Ctrl + Z undoes everything. It does not undo system changes, driver updates, app installations, or actions in programs that do not implement undo. It also cannot bring back a file permanently deleted with Shift + Delete once the Recycle Bin has been emptied.
  • Pressing Ctrl + Z in the wrong window. If you click another app first, the undo applies there, not to the document you meant to fix.
  • Confusing undo and redo. Ctrl + Z goes backwards; Ctrl + Y goes forwards. Pressing Ctrl + Z repeatedly will not redo anything.

Tips

  • In most Microsoft Office apps, you can click the small arrow next to the Undo button to see a list of recent actions and undo several at once.
  • Ctrl + Z works inside text boxes on web pages, including email drafts and forms, as long as the field has focus.
  • If you use a Mac keyboard with a Windows PC, the key labelled Command usually sends the Windows key signal. Use Ctrl for Windows shortcuts instead.
  • For file operations, check the Recycle Bin before assuming a delete is permanent. Right-click the file and choose Restore.
  • Some apps let you increase the number of undo steps in their settings. Look for an undo or history option in the app's preferences; if it is not there, the limit is fixed.

Troubleshooting

If Ctrl + Z does nothing, work through these checks in order.

  1. Click into the right window. Make sure the document or folder you want to change is active, then try again.
  2. Try the menu. Open Edit > Undo or use the toolbar button. If the menu item is greyed out, there is nothing to undo in that app right now.
  3. Check for a modal dialog. Press Esc to close any pop-up, then retry the shortcut.
  4. Test the keyboard. Open Notepad, type a word, and press Ctrl + Z. If it does not disappear, the Ctrl or Z key may be faulty, or a keyboard remapping tool may be intercepting the shortcut.
  5. Restart the app. Closing and reopening clears the undo history, so save your work first if you still need it.
  6. Look for the file in the Recycle Bin. If the action was a delete and undo no longer works, restore from the Recycle Bin instead.

If the shortcut still fails in one specific program, check that program's help pages. Some apps use different shortcuts or have no undo at all.

Frequently Asked Questions

Is there a Command key on Windows?

No. Windows keyboards have a Ctrl key and a Windows key. The Windows key opens the Start menu and system features; it does not act as Command.

What is the Windows equivalent of Command + Z?

Ctrl + Z. For redo, use Ctrl + Y, or Ctrl + Shift + Z in many apps.

Does Ctrl + Z work in File Explorer?

Yes, for recent actions such as renaming, moving, copying, or deleting a file. It stops working after the action is too old or after a restart.

Can I undo a deleted file after emptying the Recycle Bin?

Not with Ctrl + Z. Once the Recycle Bin is emptied, restore options depend on backup or file history features; check whether File History or a backup service is enabled on your PC.

Why does Ctrl + Z sometimes undo more than one step?

Some apps group related actions, such as a whole word typed at once, into a single undo step. The grouping is controlled by the app, not by Windows.

Does Ctrl + Z work in games?

Rarely. Most games do not use text-editing shortcuts. Check the game's own controls or settings menu.