How to Edit Undo on Keyboard | Ctrl+Z, Redo, and Fixing Mistakes

Editing on a keyboard relies on one universal shortcut: Ctrl+Z (Windows) or Command+Z (Mac) undoes your last action, while redoing a change is usually Ctrl+Y on Windows or Command+Shift+Z on Mac, though the exact key varies by app and platform.

One wrong keystroke can wipe out ten minutes of work — and knowing the right shortcut to undo it is the difference between a quick fix and a frustrated search. The undo shortcut is nearly universal. The redo shortcut? That depends on your operating system, your keyboard layout, and the app you’re using. This article covers the standard keys for Windows, macOS, and Linux, plus the less-known tricks that save time when Ctrl+Y doesn’t work.

The Standard Undo Shortcut: Nearly Universal

Undo is the most consistent keyboard shortcut across platforms. On Windows and Linux, pressing Ctrl + Z reverses your most recent action. On a Mac, the same function uses Command + Z. This works inside documents, image editors, file managers, and most text fields.

Most apps also let you undo multiple steps by pressing the shortcut repeatedly — each press steps one action back. Microsoft Access, for instance, allows up to 20 sequential undo actions, though you cannot skip to a later action without undoing everything in between.

If the shortcut stops working, check that the application window is active and focused. A stray click outside the window can break the keyboard’s connection to your command.

Why Redo Is the Tricky Shortcut

Redo restores an action you just undid, but only if you haven’t taken any new steps since the undo. The redo key is the one that trips people up, because three different shortcuts compete for the job.

On Windows, the most common redo shortcut is Ctrl + Y. Microsoft Office uses this combination, as do many general-purpose editors. However, some Windows apps — particularly Adobe products and certain design tools — use Ctrl + Shift + Z instead.

On Mac, the standard redo combination in Apple’s own apps (like Pages) is Command + Shift + Z. This mirrors the Windows alternative. If a Mac app doesn’t respond to Command+Shift+Z, it may accept Command + Y instead — check the Edit menu to see which shortcut is listed.

Redo in Microsoft Office: The F4 Trap

Microsoft Office for Windows supports two redo methods. The first is Ctrl + Y. The second is the F4 key, which Microsoft’s support documentation lists as an alternative redo or repeat command — but F4 may require pressing Fn or toggling F-Lock on compact keyboards to work.

The F4 key is Office-specific. It repeats your last action (like reapplying formatting or typing the same content) and functions as a redo when used immediately after an undo. It does not work inside most non-Microsoft applications.

Here is a comparison of redo shortcuts across the major platforms:

Platform / App Redo Shortcut Notes
Windows (general) Ctrl + Y Widely supported in editors and office apps
Windows (Adobe, some design tools) Ctrl + Shift + Z Common alternative standard
Microsoft Office (Windows) Ctrl + Y or F4 F4 may require Fn or F-Lock
macOS (Apple apps) Command + Shift + Z Apple’s documented shortcut for Pages and other first-party apps
macOS (some third-party apps) Command + Y Less common, but present in some applications
Linux (most desktops) Ctrl + Y or Ctrl + Shift + Z Depends on the desktop environment and app
Cross-platform (several editors) Both Ctrl+Y and Ctrl+Shift+Z accepted Many modern apps support both to cover user habits

Common Mistakes That Break Undo and Redo

Three errors cause most of the frustration around these shortcuts.

  • Assuming Ctrl+Y works everywhere. On many Mac apps, Ctrl+Y does nothing — the correct key is Command+Shift+Z. Always check the app’s Edit menu to confirm the active shortcut.
  • Relying on F4 outside Microsoft Office. F4 is not a system-level redo key. It will not work in Google Docs, most browsers, or image editors.
  • Thinking the undo stack is unlimited. Some applications cap the undo history. Microsoft Access limits it to 20 actions. Photoshop, by contrast, defaults to 50 steps. Knowing the cap of your tool prevents surprises when you try to undo that change from ten minutes ago.

How to Find the Right Shortcut When You’re Stuck

When a keyboard shortcut fails, the Edit menu in your application is the fastest way to see the correct key. On Windows, open the Edit menu and look next to Undo and Redo — the shortcut is listed there. On Mac, click the application name in the menu bar, then Edit; the Command-key combinations appear to the right of each item.

If the menu shows Can’t Redo grayed out, it means there is no undone action to restore. Redo is available only after an undo has been performed, per the standard behavior Microsoft and Apple both document.

When Keyboard Shortcuts Fail Completely

Occasionally a shortcut simply stops working due to a software conflict, a stuck key, or a changed keyboard layout. The fallback is the on-screen button: click Undo or Redo on the Quick Access Toolbar in Microsoft Office, or use the Edit menu in any application. If the button itself is grayed out, the action cannot be undone or redone — this can happen after closing and reopening a document, because the undo history is stored in memory and is cleared when the file is closed.

The table below shows the documented undo and redo limits in popular applications:

Application Undo / Redo Limit Note
Microsoft Office (Word, Excel, PowerPoint) 100 actions (default) Configurable via Windows Registry in some versions
Microsoft Access 20 actions Applies to design and typing changes only
Adobe Photoshop 50 steps (default) Adjustable in Preferences
Apple Pages Unlimited (session-based) History clears when document is closed

Redo Shortcuts: The One-Line Summary

Start with Ctrl+Y on Windows and Command+Shift+Z on Mac. If neither works, check the app’s Edit menu. Use Microsoft’s official Office shortcut reference for the applications you use most, and remember that F4 only works in Microsoft Office — not in browsers, Adobe apps, or Google Workspace. Knowing these patterns means you can fix a mistake in under a second, every time.

References & Sources