How to Shut Down Windows With the Keyboard

On the desktop with no windows open, press Alt + F4, and Windows prompts you to shut down; press Enter with Shut down selected. If windows are in the way, press Windows logo key + X, then pick Shut down or sign out > Shut down.

This covers current versions of Windows 11 on a PC that still responds. Microsoft’s list shows the same shortcuts for Windows 10, which Microsoft states reached the end of support on October 14, 2025.

Which keys fit your situation

Each route ends the same way, so pick the one that matches what is on your screen right now.

What you see Keys to press Why this one
The desktop, nothing open Alt + F4, then Enter Fewest keys
Apps open on the screen Windows logo key + X, then Shut down or sign out > Shut down Works no matter which window is active
Apps open and you’d rather use Alt + F4 Windows logo key + D, then Alt + F4 Shows the desktop first, so Alt + F4 doesn’t close an app
A keyboard without a Windows logo key Ctrl + Esc, then the Power button in Start Ctrl + Esc opens Start on any keyboard
An app is stuck or hogging the screen Ctrl + Alt + Delete, then Task Manager Lets you close the stuck app before shutting down
You want a complete shutdown, not a fast-startup one Windows logo key + R, then shutdown /s /t 0 Microsoft’s documented full shutdown

Before any of these, save open files. Shutting down closes your apps, and anything unsaved may be lost.

Alt + F4 on an empty desktop

Microsoft’s list of Windows keyboard shortcuts describes Alt + F4 as closing the active window and, if no windows are open, prompting you to shut down. That second half is the one you want.

  1. Press Windows logo key + D. Microsoft lists this shortcut as displaying and hiding the desktop, so the desktop becomes the active area.
  2. Press Alt + F4. A shutdown prompt appears.
  3. Check that Shut down is the selected choice. If it isn’t, the arrow keys normally move through the list of choices.
  4. Press Enter. Windows closes your apps and turns the PC off.

Changed your mind? Press Esc to close the prompt without doing anything.

The most common surprise with this route: if any window is active when you press Alt + F4, Windows closes that window instead. Press it again and the next window closes. That’s why step 1 matters.

The Quick Link menu: Windows logo key + X

Microsoft calls the menu that Windows logo key + X opens the Quick Link menu, and notes it’s the same as right-clicking the Start button. Microsoft’s own shut down, sleep and hibernate page uses this menu, with Shut down or sign out as the entry that holds the power choices.

  1. Press Windows logo key + X together (not one after the other).
  2. Use the up and down arrow keys to highlight Shut down or sign out.
  3. Press the right arrow key or Enter to open its submenu.
  4. Highlight Shut down and press Enter.

This route ignores whatever app is in front, which makes it the safest choice when several windows are open. Older articles describe pressing single letters in this menu to jump to Shut down; Microsoft doesn’t list those letters, so the arrow keys are the dependable way.

No Windows key? Use Ctrl + Esc for Start

Some compact, older or non-Windows keyboards have no Windows logo key. Microsoft lists Ctrl + Esc as the shortcut that opens the Start menu, and Microsoft’s shut-down page for Windows 11 says to select the Start button, select the Power button, and then select Shut down.

  1. Press Ctrl + Esc to open Start.
  2. Press Tab or the arrow keys until the Power button is highlighted. The exact number of presses depends on your Start layout.
  3. Press Enter to open the power choices.
  4. Highlight Shut down and press Enter.

Alt + F4 on an empty desktop needs no Windows key at all, so it’s the other good option on these keyboards. To reach the desktop without the Windows key, close or minimize windows with Alt + F4 one at a time, saving as you go.

Ctrl + Alt + Delete when an app won’t let go

Sometimes an app is frozen in front of everything and Alt + F4 does nothing useful. Microsoft describes Ctrl + Alt + Delete as switching to the security screen, where you can lock the desktop, switch user, sign out, change a password or open Task Manager.

  1. Press Ctrl + Alt + Delete.
  2. Choose Task Manager with the arrow keys and Enter.
  3. In Task Manager, select the stuck app and end it.
  4. Close Task Manager, then shut down with Alt + F4 on the desktop or with Windows logo key + X.

On many PCs the security screen also shows a power icon in a corner that offers Shut down. Microsoft’s shortcut page doesn’t mention it, so if you don’t see one, use the steps above.

A complete shutdown with one command

Microsoft’s documentation of Fast Startup explains that it is enabled by default in Windows, and that during Fast Startup the kernel session isn’t closed but hibernated: Windows saves it and the device drivers to the hibernation file on disk instead of closing them. The Fast Startup setting doesn’t apply to Restart.

For a complete shutdown, Microsoft’s Fast Startup troubleshooting article points to the shutdown command, where full shutdown is the default:

  1. Press Windows logo key + R to open the Run dialog box.
  2. Type shutdown /s /t 0 and press Enter.

What the parts mean, from Microsoft’s shutdown command reference:

  • /s shuts down the computer.
  • /t 0 sets the time-out before shutdown to 0 seconds. Without /t, the default is 30 seconds, and any time-out greater than 0 implies /f, which forces running apps to close without warning. Microsoft cautions that /f might result in loss of unsaved data.
  • /hybrid does the opposite job: it shuts down and prepares the PC for fast startup, and it must be used with /s.

If you used a delay such as shutdown /s /t 600 and need to stop it, Microsoft says shutdown /a aborts a pending shutdown when run as a separate command in a new Command Prompt window during the time-out. More on that in how to cancel a shutdown in Windows.

Restart, sign out or sleep instead

The same menus hold the other power choices, so you rarely need a separate shortcut.

If the keyboard and screen stop responding

Everything above assumes Windows still reacts to keys. If nothing happens after Ctrl + Alt + Delete, you’re dealing with a frozen PC. Microsoft documents holding the power button only for its own Surface devices: press and hold the power button until the Surface shuts down and restarts and you see the Windows logo screen (about 20 seconds). Microsoft adds that you should shut down using the standard method whenever possible; a forced power-off gives apps no chance to save. For other PCs, how to force shut down Windows covers the options.

Keyboard shutdown answers

Why did Alt + F4 close my window instead of shutting down?

Because a window was active. Alt + F4 closes the active window first and only prompts for shutdown when no windows are open. Press Windows logo key + D to show the desktop, then try again.

Is the shutdown command different from Shut down in a menu?

Yes, while Fast Startup is on. Microsoft describes the menu shutdown with Fast Startup as hibernating the kernel session, while shutdown /s /t 0 performs a full shutdown by default.

Can I stop a shutdown after pressing Enter?

Not a menu shutdown that is already under way. A timed command shutdown can be stopped with shutdown /a during its countdown.

Next step: try Windows logo key + X once now, while nothing is urgent, so the arrow-key path feels familiar the day your mouse stops working.