How to Undo on Keyboard

How to Undo on Keyboard

 

How to Undo on Keyboard: The Complete Guide (2026)

Everyone’s hit that moment — you accidentally delete a paragraph you needed, drag a file into the wrong folder, or apply a filter you instantly regret. The single most useful keyboard shortcut for situations like this is Undo, and thankfully it’s one of the most consistent commands across nearly every app and operating system you’ll ever use.

This guide covers the exact undo (and redo) shortcuts for Windows, Mac, and Linux, how they work across popular apps like Word, Excel, Google Docs, and Photoshop, what to do when undo doesn’t work as expected, and a few lesser-known tricks that go beyond the basic keystroke.

The Basic Undo Shortcut on Windows

On Windows, the universal keyboard shortcut for Undo is:

Ctrl + Z

This works across the vast majority of Windows applications — word processors, spreadsheets, image editors, file explorers, and most web browsers. Pressing it once reverses your most recent action; pressing it repeatedly continues stepping backward through your recent history, one action at a time, in most apps that support multiple undo steps.

The Basic Undo Shortcut on Mac

On macOS, the equivalent shortcut is:

Command + Z

Functionally, it works the same way as Ctrl+Z on Windows — it reverses your most recent action, and repeated presses continue undoing further back in supported apps. If you’re used to Windows and just switched to a Mac keyboard, the layout logic carries over directly: swap Ctrl for Command, and the shortcut behaves identically.

The Basic Undo Shortcut on Linux

Linux desktop environments generally follow the same convention as Windows:

Ctrl + Z

This holds true across most GTK and Qt-based applications (common in environments like GNOME and KDE), as well as most cross-platform apps like browsers, LibreOffice, and GIMP.

How to Redo (Undo the Undo)

If you go one step too far and undo something you actually wanted to keep, Redo brings it back:

  • Windows: Ctrl + Y, though many cross-platform apps (particularly design and creative tools) also accept Ctrl + Shift + Z.
  • Mac: Command + Shift + Z is the standard redo shortcut across nearly all apps.
  • Linux: Try Ctrl + Y first, and if that doesn’t work in your specific app, fall back to Ctrl + Shift + Z.

One quirk worth knowing on Mac: Command + Y is not the redo shortcut, and in some apps — Safari, for example — it actually opens a completely different function like browsing history. If you’re used to Windows muscle memory, this is an easy mix-up to make right after switching platforms.

Undo and Redo Shortcuts in Popular Apps

While Ctrl+Z / Command+Z is close to universal, here’s how it plays out across some of the most commonly used software:

  • Microsoft Word: Ctrl+Z / Ctrl+Y on Windows, Command+Z / Command+Shift+Z on Mac.
  • Microsoft Excel: Same shortcuts as Word, though be aware some actions in Excel — like deleting an entire sheet or saving a workbook — cannot be undone at all, regardless of how quickly you press Ctrl+Z afterward.
  • Microsoft PowerPoint: Ctrl+Z / Ctrl+Y on Windows, Command+Z / Command+Shift+Z on Mac.
  • Microsoft Outlook: The same shortcuts work for undoing typed text within an email, though undo generally can’t reverse an email that’s already been sent (Outlook’s separate “Undo Send” delay feature handles that scenario instead, if enabled).
  • Google Docs and Google Workspace apps: Ctrl+Z / Ctrl+Y on Windows, Command+Z / Command+Shift+Z on Mac — consistent with Microsoft Office’s shortcuts, which makes switching between the two relatively painless.
  • Adobe Photoshop: Ctrl+Z on Windows and Command+Z on Mac undoes the single most recent action, but pressing it again re-does that same action rather than continuing backward — Photoshop treats Ctrl+Z as a toggle between undo and redo for one step. To step further back through your history, Photoshop instead uses Ctrl+Alt+Z (Windows) or Command+Option+Z (Mac) repeatedly, or you can use the Redo shortcut Ctrl+Shift+Z (Windows) / Command+Shift+Z (Mac) to move forward again.
  • Web browsers (Chrome, Firefox, Edge): Ctrl+Z / Command+Z generally works for undoing text typed into a form field or address bar, though it won’t undo actions like closing a tab — for that, use Ctrl+Shift+T (Windows/Linux) or Command+Shift+T (Mac) to reopen the last closed tab instead.

Alternative Ways to Undo Without the Keyboard Shortcut

If you’d rather click through a menu, or the shortcut isn’t registering for some reason, most apps offer a couple of backup methods:

  1. The Edit menu. Nearly every desktop application with undo support lists it directly under Edit > Undo (and Edit > Redo), often showing exactly what action will be reversed — for example, “Undo Typing” or “Undo Paste” — which can help confirm you’re about to undo the right thing.
  2. The Quick Access Toolbar (Microsoft Office apps). Word, Excel, and PowerPoint all place small Undo and Redo arrow icons in the Quick Access Toolbar near the top of the window, letting you click through your undo history visually.
  3. A visible history panel. Some creative apps, like Photoshop, offer a dedicated History panel where you can click directly on any previous state to jump back to it, rather than pressing undo repeatedly one step at a time.

Why Undo Sometimes Doesn’t Work

A few common reasons your undo shortcut might not be behaving as expected:

  • There’s simply nothing left to undo. If the Undo option is greyed out in the Edit menu, it usually means you’ve already reached the beginning of your current undo history, or nothing has changed since the document was last opened.
  • Some actions aren’t undoable at all. In Excel, for instance, deleting a worksheet or saving a workbook are examples of actions that can’t be reversed with undo, no matter how quickly you try.
  • The undo history has a limit. Many apps only retain a certain number of recent actions, or limit history to your current session — closing and reopening a document can wipe out any previously available undo states entirely.
  • A shortcut conflict is intercepting the keystroke. Some applications reassign Ctrl+Z or Command+Z for their own internal function, especially specialized creative or technical software, which can prevent the standard undo command from registering.
  • System-level accessibility settings or third-party utilities are overriding the shortcut. Certain macOS accessibility features, or third-party keyboard remapping tools, can interfere with default undo/redo behavior without it being obvious why.
  • An add-in is interfering (Office apps in particular). In Word or Excel, a misbehaving add-in can occasionally disrupt standard editing shortcuts, including undo and redo.

How to Fix Undo When It Stops Working

If you’ve run into one of these issues, here’s how to troubleshoot it:

  1. Restart the application. This resolves a surprising number of temporary undo/redo glitches on its own.
  2. Check the Edit menu directly to see what undo action (if any) is currently available, rather than relying purely on the keyboard shortcut.
  3. Re-enable the Quick Access Toolbar in Office apps if the Undo/Redo icons have disappeared, since this can sometimes coincide with shortcut issues.
  4. Check for interfering add-ins. Disable recently installed add-ins in Word or Excel to see if standard shortcuts return to normal.
  5. On Mac, check System Settings > Keyboard > Keyboard Shortcuts to confirm Undo/Redo haven’t been reassigned or disabled by another system function or accessibility feature. If they’ve been changed, you can typically restore them to default from this same settings screen.
  6. On Windows, check Settings > Time & language > Typing to review whether Sticky Keys or another accessibility feature is affecting how key combinations are being registered.
  7. As a last resort, refresh or reopen the specific document or workspace, since some undo histories are session-based and won’t recover through any other method once lost.

Lesser-Known Undo-Adjacent Tricks

  • F4 in Microsoft Office: While not technically “undo,” pressing F4 repeats your last action, which can feel similar to redo in certain workflows — for example, quickly reapplying the same formatting to multiple selections.
  • Ctrl+Shift+T (or Command+Shift+T on Mac) to reopen a closed browser tab: This is effectively an “undo” for accidentally closing a tab, even though it’s technically a separate shortcut from the standard undo command.
  • Undo an accidental file move or delete in Windows Explorer: Ctrl+Z works directly in File Explorer too, reversing recent file operations like moves, renames, or deletions (as long as they haven’t been permanently removed from the Recycle Bin).
  • Finder undo on Mac: Command+Z similarly works in Finder for undoing recent file moves, renames, or deletions, mirroring how it behaves in Windows Explorer.

Tips for Using Undo More Effectively

  • Get comfortable pressing it repeatedly, not just once. Most apps support stepping back multiple actions, not just the single most recent one.
  • Learn your specific app’s exception cases. Knowing in advance that Excel can’t undo a worksheet deletion, or that Photoshop’s Ctrl+Z toggles rather than steps backward, saves you from a nasty surprise mid-task.
  • Save your work before major irreversible actions (like deleting a large batch of data or a sheet in Excel) rather than relying on undo as a safety net for actions your specific app doesn’t support reversing.
  • If you’re bouncing between Windows and Mac regularly, it helps to consciously remember that Command+Y is not Mac’s redo — muscle memory from Windows can easily trip you up here.
  • Use the Edit menu to double check what exactly undo is about to reverse before pressing it in a document with complex, layered changes, especially in design software.

Frequently Asked Questions

1. What is the universal undo shortcut on a keyboard? Ctrl+Z on Windows and Linux, and Command+Z on Mac. It’s one of the most consistent shortcuts across operating systems and applications.

2. How do I redo something after I’ve undone it? On Windows, press Ctrl+Y (or Ctrl+Shift+Z in some apps). On Mac, press Command+Shift+Z. Note that Command+Y on Mac is not redo and may trigger a different function depending on the app.

3. Why is my undo option greyed out? This usually means there’s nothing left to undo — either you’ve reached the start of your current undo history, or no changes have been made since the file was opened.

4. Can I undo a deleted worksheet in Excel? No. Deleting a worksheet is one of a handful of actions in Excel that cannot be reversed with undo, regardless of how quickly you try.

5. Why does Ctrl+Z behave differently in Photoshop compared to Word? In Photoshop, Ctrl+Z (or Command+Z on Mac) toggles between undoing and redoing a single action rather than stepping continuously backward. To move further back through your history, use Ctrl+Alt+Z (Windows) or Command+Option+Z (Mac) instead.

6. Does undo work in File Explorer or Finder? Yes. Ctrl+Z in Windows File Explorer and Command+Z in Mac Finder can both reverse recent file operations like moves, renames, and deletions, as long as the action hasn’t been permanently finalized.

7. Why did my undo/redo shortcuts stop working on my Mac? This can happen if the shortcuts have been reassigned or disabled through System Settings > Keyboard > Keyboard Shortcuts, or if a macOS accessibility feature or third-party utility is overriding the default command.

8. Is there a way to see my full undo history instead of pressing Ctrl+Z repeatedly? Yes, in some apps. Photoshop, for example, offers a dedicated History panel where you can click directly on any earlier state rather than undoing one step at a time. Most other apps don’t offer a visual history and rely on repeated key presses instead.

Conclusion

Undo is one of those shortcuts that feels almost too simple to write a whole guide about — until you’re the one frantically pressing Ctrl+Z after accidentally deleting three paragraphs, and it doesn’t seem to be working. Knowing the core Ctrl+Z / Command+Z shortcut gets you most of the way there, but the real value is in understanding the exceptions: which actions your specific app can’t undo, how Photoshop’s toggle behavior differs from Word’s step-back history, and where to look when the shortcut stops responding altogether. Once those quirks are second nature, undo becomes exactly what it’s meant to be — a safety net you barely have to think about.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *