Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Shut Down a Windows PC or Mac with the Keyboard

Use Windows+D and Alt+F4 to reach the shutdown dialog, or shut down a Mac from the Apple menu after saving open work.

Table of Contents

Save open files before shutting down. In Windows, press Windows key + D to show the desktop, then Alt + F4 to open the shutdown dialog. On a Mac, the Apple menu provides the safest shutdown command; a keyboard shortcut can quit apps and shut down, but unsaved documents may prompt you to save.

Windows desktop keyboard shortcut

Windows Shut Down dialog

Windows 7 shutdown menu

Windows power-user shutdown menu

Mac keyboard shutdown shortcut

Shut down Windows with the keyboard

  1. Save your work and close any dialogs that need a response.
  2. Press Windows key + D to move to the desktop.
  3. Press Alt + F4. In the Shut Down Windows dialog, choose Shut down from the list if it is not already selected.
  4. Press Enter to confirm.

On many Windows 10 and 11 systems, Windows key + X, then U, then U also selects Shut down. Menu shortcuts can vary with Windows version and focus; if the sequence does not work, use the desktop dialog above. Do not press Alt+F4 while an unsaved app is active unless you intend to close that app.

Shut down a Mac with the keyboard

Save documents, then use the Apple menu and choose Shut Down. On Macs with a power button or supported media-eject key, Control-Option-Command-Power (or the corresponding Eject key on older keyboards) quits apps and shuts down. Unsaved documents may trigger save prompts. If the shortcut does not apply to your keyboard, use the Apple menu.

About older Windows shortcuts

The original screenshots include menus from older Windows versions. Windows 7 and XP are no longer current support targets; their menu labels and key sequences may not match today’s systems.

Do not hold the power button to shut down normally. Use it only when the computer is completely unresponsive, because a forced power-off can lose unsaved work.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.