The fastest keyboard shortcut to restart a Windows computer is Windows Key + X, then U, then R. This works on Windows 10 and 11 even when your mouse is completely unresponsive. On a Mac, press Control + Command + Power Button for an immediate restart. If the system is frozen and standard shortcuts are failing, Ctrl + Alt + Del sends a hardware-level interrupt that bypasses most software locks.
The methods below are ranked by scenario start with the one that matches your current situation. Here is the hierarchy of keyboard restart methods, ranked from the most reliable shortcut key to restart computer to hardware overrides.
Keyboard Shortcuts to Restart Your Computer: Quick Reference
| Operating System | Scenario | Keyboard Shortcut |
| Windows 10/11 | Normal restart (fastest) | Win + X, then U, then R |
| Windows 10/11 | Desktop focused | Win + D, then Alt + F4, select Restart |
| Windows 10/11 | Frozen screen | Ctrl + Alt + Del → Power icon → Restart |
| Windows 10/11 | Command line override | Ctrl + Shift + Esc → Run new task → shutdown /r /t 0 |
| Windows 10/11 | Restart to Safe Mode | Shift + Restart (from Start menu or login screen) |
| macOS (all versions) | Standard restart | Control + Command + Power Button (or Eject) |
| macOS (all versions) | Dialog box restart | Control + Power Button → press R |
| macOS (frozen) | Force restart | Hold Control + Command + Power Button until screen goes black |
| Linux (most distros) | Terminal restart | Ctrl + Alt + T → type sudo reboot → Enter |
| Linux (frozen) | TTY restart | Ctrl + Alt + F2 → login → type sudo reboot |
| Any OS | Keyboard unresponsive | Hold physical Power Button 5–10 seconds |
Step By Step Guide For How to Restart Computer with Keyboard Shortcuts
How to Restart Windows 10 or 11 with the Keyboard (Fastest Method)
Best for: When your mouse has stopped responding but the system is still processing commands.
To restart Windows 10 or 11 using only the keyboard:
- Press Windows Key + X — this opens the Quick Link menu in the lower-left corner of the screen.
- Press U — this expands the “Shut down or sign out” submenu.
- Press R — this selects Restart and begins the reboot sequence immediately.
No mouse interaction is needed at any point. The Windows + X menu communicates directly with the system shell, so it remains accessible even when individual applications are frozen.
If this menu does not appear within two seconds of pressing Windows + X, the system shell itself may have stopped responding. Move to the Ctrl + Alt + Del method below.

The computer will immediately begin the reboot sequence. If this menu does not appear, your system may be too frozen to register standard shell commands, and you should move to the interrupt method below.
How to Restart Windows Using Alt + F4
Best for: Older versions of Windows or if the Win+X menu is disabled.
The standard Alt + F4 shortcut only triggers a shutdown dialog if the Desktop is the currently focused window. If you press it while reading this article, you will simply close your browser. To make this work, you must force focus to the desktop first.
- Press
Windows Key + D. This minimizes all open windows and places focus on the Desktop background. - Press
Alt + F4. A dialog box labeled Shut Down Windows will appear. - Use the Down Arrow key to toggle the selection from Shut down to Restart.
- Press
Enter.
How to Restart a Frozen Windows Computer Using Ctrl + Alt + Del
Best for: When the screen is lagging, applications are not responding, or the Start menu will not open.
Ctrl + Alt + Del is not a standard keyboard shortcut it is a hardware interrupt. It sends a signal at a lower system level than the operating system’s graphical interface, which is why it can break through most software freezes.
To restart using this method:
- Press Ctrl + Alt + Del simultaneously. The screen should switch to a blue system menu showing options like Lock, Switch User, and Task Manager.
- Because your mouse likely will not respond here, use the Tab key to move between options. Watch for a highlight box moving across the screen.
- Press Tab repeatedly (typically 5–7 presses) until the Power icon in the bottom-right corner is highlighted.
- Press Enter to open the power options.
- Use the Down Arrow to select Restart, then press Enter.
How to check if your keyboard is still working: Before attempting any keyboard shortcut, press the Caps Lock key once. If the Caps Lock indicator light on your keyboard toggles on or off, the keyboard is still sending signals. If the light does not change, the system has stopped accepting input entirely skip directly to the physical power button method.
How to Force a Restart Using the Command Line (When Start Menu Fails)
Best for: When the Start menu is broken or unresponsive, but you can still open Task Manager.
If Task Manager is accessible (press Ctrl + Shift + Esc to open it), you can issue a direct restart command to Windows without touching the Start menu:
- With Task Manager open, press Alt, then F, then N this opens the “Run new task” dialog.
- Type:
shutdown /r /t 0 - Press Enter.
The /r flag tells Windows to restart (rather than shut down), and /t 0 sets a zero-second delay, so the reboot begins immediately. This command bypasses stuck applications that may be blocking a normal shutdown sequence.
Alternative using the Run dialog directly: If Task Manager is also inaccessible but you can still press keyboard shortcuts, try:
- Press Windows Key + R to open the Run dialog.
- Type
shutdown /r /t 0and press Enter.
This works as long as the Windows shell is partially functional.
macOS Restart Shortcuts
Macs utilize different modifier keys. The method depends on whether your keyboard has a physical Eject button (older Macs/Magic Keyboards) or a Power/Touch ID button (modern MacBooks).
- Standard Restart: Press
Control + Command + Power Button(or Eject). This instantly reboots the machine. - Dialog Box Method: Press
Control + Power Button(or Eject). This brings up the shutdown dialog. PressRto select Restart, thenEnter. - Force Restart (Frozen Mac): Press and hold
Control + Command + Power Buttonuntil the screen goes black and the Apple logo reappears.
How to Restart Linux with the Keyboard
Linux restart shortcuts vary slightly depending on the distribution and desktop environment, but these methods work across most common setups.
Standard restart via terminal:
- Press Ctrl + Alt + T to open a terminal window.
- Type
sudo rebootand press Enter. - Enter your password if prompted. The system will restart immediately.
If the graphical interface is frozen: Most Linux distributions retain access to virtual terminals (TTY) even during a GUI freeze:
- Press Ctrl + Alt + F2 (or F3, F4 any function key from F2 to F6) to switch to a text-based terminal.
- Log in with your username and password.
- Type
sudo rebootand press Enter. - Press Ctrl + Alt + F1 or Ctrl + Alt + F7 to return to the graphical interface if needed (though the reboot will begin before this matters).
SysRq method (last resort before power button): On kernels with SysRq enabled, pressing Alt + SysRq (Print Screen) + R + E + I + S + U + B in sequence can force a safer reboot than pulling the power. Each letter triggers a specific kernel-level command.
How to Force Restart When the Keyboard Stops Responding
Best for: When no keyboard input is registering and the screen is completely frozen.
Before reaching for the power button, confirm the keyboard has actually stopped working: press Caps Lock and watch for the indicator light. If it does not toggle, the system is no longer accepting input signals and software-based restarts are not possible.
To perform a hard reset:
- Locate the physical Power button on your PC case or laptop.
- Press and hold the button for a full 5 to 10 seconds.
- Wait until the machine powers down completely fans stop spinning, all lights go out.
- Wait 10 seconds to allow residual charge in the capacitors to dissipate.
- Press the power button once to turn the machine back on.
On the power cord question: Pulling the power cord or removing the battery abruptly is more disruptive than a held power button press, because the power button triggers a controlled hardware shutdown sequence even in unresponsive states. Reserve cord-pulling for situations where the power button itself is physically broken.
What to expect on reboot: Windows and macOS will typically detect the improper shutdown and run a brief disk check. Any unsaved data in open documents will be lost, but the operating system file structure almost always recovers without manual intervention.
Recommended Next Steps
If you successfully restarted but your mouse or trackpad remains unresponsive, the issue is likely hardware or driver-related rather than a temporary OS glitch.
- Laptop Users: Check your
Fkeys (F1-F12). Many laptops have a function key (often with a touchpad icon) that physically disables the mouse for typing. Toggle it by pressingFn + [Key]. - Desktop Users: Try moving the mouse USB plug to a different port, preferably one directly on the motherboard (back of the PC) rather than a front-panel hub.
Final Thoughts: Which Method Should You Use?
For most situations where the mouse has stopped working, Windows Key + X → U → R gets you to a restart in under three seconds without touching anything else. If the system is frozen, Ctrl + Alt + Del is the right first move it operates at a level below the graphical interface and works when standard shortcuts do not.
Reserve the physical power button for situations where the keyboard itself has gone silent. Check the Caps Lock light first. If it toggles, the keyboard is still alive and a software method will work.
FAQs:
Will restarting with a keyboard shortcut cause data loss?
Keyboard shortcuts that go through the normal shutdown sequence (Windows + X → Restart, or Alt + F4 → Restart) will prompt you to save open documents before rebooting, the same way a mouse-click restart would. The command shutdown /r /t 0 skips that prompt, so save your work before using it. The physical power button hold is the only method that guarantees data loss for unsaved files.
Can I customize keyboard shortcuts for restarting?
Windows does not natively support custom restart shortcuts through the keyboard settings, but you can create a desktop shortcut pointing to shutdown /r /t 0 and assign it a hotkey through the shortcut’s Properties menu. On macOS, System Settings → Keyboard → Keyboard Shortcuts allows some customization, though restart shortcuts are not directly remappable by default.
How often should I restart my computer from keyboard?
For most users, restarting once every few days clears memory caches, applies pending updates, and resolves minor background process issues. If your machine runs continuously for weeks, performance degradation and update backlogs are common side effects.
Do keyboard shortcuts work if my computer is frozen?
It depends on the type of freeze. Ctrl + Alt + Del is a hardware interrupt and works during most software freezes it bypasses the graphical interface and gives you access to the power menu. The Windows + X and Alt + F4 methods require the Windows shell to be responsive. If the Caps Lock key light does not toggle when pressed, no keyboard input is reaching the system, and you need to use the physical power button.
What is the keyboard shortcut to restart Windows 11?
Windows 11 uses the same shortcut as Windows 10: Windows Key + X, then U, then R. The Power User Menu accessed by Windows + X is present in both versions and is the most reliable keyboard-only restart path.
Kaleem
My name is Kaleem and i am a computer science graduate with 5+ years of experience in Computer science, AI, tech, and web innovation. I founded ValleyAI.net to simplify AI, internet, and computer topics also focus on building useful utility tools. My clear, hands-on content is trusted by 5K+ monthly readers worldwide.