To shut down your PC using the keyboard, press Windows + D, then Alt + F4, select Shut down with ↑ or ↓, and press Enter. This works on Windows 11 and Windows 10. Check the selected action before confirming.
The short version
- Desktop shortcut: Press Windows + D, then Alt + F4, choose Shut down, and press Enter.
- Quick menu: On an English-language Windows PC, press Windows + X, release both keys, then press U twice.
- Unresponsive desktop: Press Ctrl + Alt + Delete and choose Shut down from the security screen’s Power menu.
- Command option: Press Windows + R, enter
shutdown /s /t 0, and press Enter.
| Method | How to start | When to use it |
|---|---|---|
| Desktop shutdown dialog | Windows + D, then Alt + F4 | Everyday shutdown on Windows 11 or Windows 10 |
| Quick Link menu | Windows + X | A short menu route on Windows 11 or Windows 10 |
| Start menu | Windows or Ctrl + Esc | Choosing the visible power action |
| Shutdown command | Windows + R | Running an immediate shutdown command |
| Security screen | Ctrl + Alt + Delete | An unresponsive desktop with a working security screen |
| Task Manager | Ctrl + Shift + Esc | Start or Explorer trouble on current Windows 11 |
| Custom shortcut | A combination you assign during setup | Shutting down with your chosen hotkey |
| Forced hardware shutdown | Hold the physical power button | A last resort on HP laptops covered by HP’s instructions |
Use the desktop shutdown dialog
Press Windows + D, check that the desktop is in focus with no window active, then press Alt + F4. Use ↑ or ↓ to select Shut down. Check the selected action, then press Enter to confirm.
If a window is open, the second shortcut closes that window first instead of opening the shutdown dialog. Because Windows + D both displays and hides the desktop, press it again if your windows reappear, then press Alt + F4 once the desktop is showing. If your keyboard gives media controls priority, you may need to hold Fn while pressing Alt + F4.
Shut down through the Quick Link menu
On an English-language Windows 11 or Windows 10 PC, press Windows + X and release both keys. Press U, then press U again. This follows Shut down or sign out > Shut down.
The letter shortcuts depend on your Windows display language. For another language, open the same menu with Windows + X, then use ↑, ↓, ←, → and Enter to follow the displayed menu choices.
Choose Shut down from Start
Open Start by pressing Windows or Ctrl + Esc. Use Tab, Shift + Tab and ↑, ↓, ← or → to reach Power, then press Enter. Select Shut down with ↑ or ↓ and press Enter.
This route works on Windows 11 and Windows 10, but the focus order varies with the layout of Start. Watch which control is focused as you move through the menu, and use Shift + Tab to move backward when needed.
Enter a shutdown command
On Windows 11 or Windows 10, press Windows + R to open Run. Type this command:
shutdown /s /t 0Press Enter to run it. The command requests shutdown with no countdown and requires your account to have the Shut down the system user right. You can also enter the same command in Command Prompt, Windows PowerShell or a Windows Terminal shell.
Keep /f out of the command if you want to avoid forcing applications to close. Microsoft warns that adding it can lose unsaved work.
Fix shutdown when the desktop stops responding
When the desktop is unresponsive but the security screen still works, press Ctrl + Alt + Delete. Use Tab or Shift + Tab to focus Power, then press Enter. Choose Shut down with ↑ or ↓ and press Enter again.
This route works on Windows 11 and Windows 10 when the security screen responds. If it also stops responding, use the physical-button fallback below only when normal shutdown is unavailable.
Launch the command from Task Manager
On current Windows 11, Task Manager provides another way to launch the shutdown command when Start or Explorer is malfunctioning. Press Ctrl + Shift + Esc to open Task Manager. Use keyboard navigation to select Run new task, then enter:
shutdown /s /t 0Select OK to run the command. Your account still needs permission to shut down the system, just as it does when you launch the command through Run.
Set up your own shutdown shortcut
On Windows 11 or Windows 10, you can assign a shutdown shortcut to an unused key combination. On the desktop, open the context menu and select New > Shortcut. Enter this command:
shutdown /s /t 0Select Next, name the shortcut, then select Finish. Open its Properties and select the Shortcut tab. Focus Shortcut key, press an unused combination such as Ctrl + Alt + S, then select Apply.
After setup, press your assigned combination to shut down the PC. Alternatively, select the desktop shortcut and press Enter. The combination Ctrl + Alt + S is not a built-in shutdown shortcut, so it needs this setup first.
Use the physical power button as a last resort
Use a forced hardware shutdown only when normal shutdown is unavailable. For laptops covered by its instructions, HP gives a power-button hold of approximately 10 seconds. Other manufacturers and models can require different hold durations.
Unsaved work can be lost during a forced shutdown. On those HP laptops, hold the physical power button until the laptop turns off. If freezing led you to this fallback, see the steps to fix a frozen laptop.
Frequently Asked Questions
What should I choose when Windows offers Update and shut down?
Choose Update and shut down when you want to install pending updates as part of shutting down. On Windows 11 or Windows 10, open Start > Power using keyboard navigation, select that option when it appears, then press Enter.
Can I schedule a short shutdown countdown and cancel it?
Yes, on Windows 11 or Windows 10, you can request a 60-second countdown and cancel it before it expires. A timeout greater than zero forces applications to close, so save your files first. Run shutdown /s /t 60 to start the countdown. Before it expires, run shutdown /a to cancel.
Can a power button built into my laptop keyboard shut it down?
Yes, on Windows 11 notebooks with configurable power-button actions, with Windows 10 steps also documented by ASUS, you can assign shutdown to a keyboard-integrated power button. On Windows 11, search for and open Choose a power plan; on Windows 10, ASUS starts from Power & sleep settings > Additional power settings. Then select Choose what the power button does. Choose Shut down for the power-button action under On battery and Plugged in as applicable, then select Save changes. Afterward, briefly press the power button; an ordinary Sleep key is not automatically equivalent.
Can I finish Slide to Shut Down using only the keyboard?
HP’s Slide to Shut Down procedure requires you to drag or swipe the displayed panel downward to finish. On Windows 11 or Windows 10, press Windows + R, enter SlideToShutDown.exe, and press Enter to display that panel. Choose the desktop shutdown dialog or Quick Link menu when you need to complete the shutdown entirely with keys.