The fastest way to restart your computer without touching the mouse

You can restart your computer using only the keyboard on Windows, Mac, and Linux. The method depends on your operating system, but each one takes fewer than ten seconds once you know the key combination. This is useful when your mouse stops working, when you need to restart quickly, or when you're troubleshooting a frozen screen.

The keyboard shortcut does not force a shutdown — it sends a proper restart command, so your computer closes programs and saves data the way it normally would. If a program is frozen and refuses to close, you may need a different approach, which this guide covers below.

Key Takeaways

  • On Windows 10 and 11, press Alt + F4 to close all windows, then use Alt + Tab to navigate to the shutdown menu, or use the Windows key + X to open the power menu directly.
  • On Mac, press Control + Command + Power button (or Control + Command + Eject on older keyboards) to restart when ready without a confirmation dialog.
  • On Linux with a graphical desktop, the method varies by distribution, but Ctrl + Alt + Delete often opens a logout menu where you can select restart.
  • If your computer is completely frozen and will not respond to keyboard commands, hold the power button for 10 to 15 seconds to force a shutdown, then press it again to turn it back on.
  • A keyboard restart is safer than a force shutdown because it allows running programs to close properly and prevents data loss.

Restarting Windows 10 and Windows 11 with the keyboard

The quickest method on Windows is to use the power menu. Press the Windows key + X (hold Windows and tap X). A menu will appear on the left side of your screen with options including Shut down or sign out. Use the arrow keys to highlight "Restart" and press Enter.

If that menu does not appear, try the alternative: press Alt + F4 repeatedly until all open windows close. Once you reach the desktop with no windows open, press Alt + F4 one more time. A shutdown dialog will appear. Use the arrow keys to select "Restart" from the dropdown menu, then press Enter.

A third option works on any Windows version: press Ctrl + Alt + Delete, then use arrow keys to navigate to the power icon in the bottom right corner of the screen. Press Enter, then arrow to "Restart" and press Enter again. This method takes slightly longer but works reliably even when other shortcuts fail.

Restarting a Mac with the keyboard

On Mac, the restart command is built directly into the keyboard. Press Control + Command + Power button at the same time. Your Mac will restart when ready without asking for confirmation. On older Mac keyboards that have an Eject key instead of a Power button, use Control + Command + Eject.

If you want a confirmation dialog before restarting (in case you pressed the keys by accident), use Control + Command + Q instead. This will lock your screen and show a restart option. You can then press R to restart, or press Escape to cancel.

If neither shortcut works, your Mac may be frozen. Hold down the power button for 10 seconds to force a shutdown, wait 5 seconds, then press the power button once to turn it back on.

Restarting Linux with the keyboard

The keyboard method for Linux depends on which desktop environment you use. On most distributions with GNOME or KDE, press Ctrl + Alt + Delete. A logout menu will appear. Use arrow keys to navigate to "Restart" or "Reboot" and press Enter.

If Ctrl + Alt + Delete does not work, try Alt + F2, type reboot, and press Enter. Some systems require you to enter your password after typing the command. On systems without a graphical desktop (command-line only), open a terminal and type sudo reboot, then press Enter.

If your Linux system is frozen and keyboard commands do not work, hold the power button for 10 to 15 seconds until the screen goes black, wait a few seconds, then press the power button once to restart.

What to do if your keyboard shortcuts are not working

If the keyboard shortcuts above do not produce any response, your computer may be frozen at a deeper level. Try pressing Num Lock on your keyboard — if the light does not toggle on and off, your keyboard input is not reaching the system at all. In this case, a keyboard restart will not work.

Your next step is a force shutdown. Hold down the power button on your computer for 10 to 15 seconds without releasing. The screen will go black and the computer will turn off. Wait 5 seconds, then press the power button once to turn it back on. This is not ideal because programs do not close properly, but it is the only option when the keyboard is unresponsive.

After a force shutdown, your computer may take longer to start up the next time, and you may see a recovery or disk check screen. Let it run — this is normal and helps prevent data loss from the unexpected shutdown.

The difference between restart and shutdown

A restart closes all programs and turns off your computer, then turns it back on automatically. A shutdown closes all programs and turns off your computer, but does not turn it back on. Both methods save your work before closing, so data loss is unlikely with either one.

Use restart when you want to clear your computer's memory and start fresh — this fixes many temporary problems like slow performance or unresponsive programs. Use shutdown when you are done for the day and want to turn the computer off completely. The keyboard shortcuts in this guide all trigger a restart; if you want a shutdown instead, follow the same steps but select "Shut down" or "Power off" from the menu instead of "Restart".

When to use keyboard restart instead of the mouse

A keyboard restart is faster than using the mouse if you are already typing or if your mouse is not working. It is also useful when your screen is frozen but still responding to keyboard input — you can restart without waiting for the mouse to become responsive again.

If your entire computer is frozen and will not respond to any keyboard input, a keyboard restart will not work. In that case, move directly to the force shutdown method described above. A force shutdown is a last resort because it does not allow programs to close properly, but it is sometimes the only way to recover a completely frozen system.

Frequently Asked Questions

Will restarting with the keyboard cause me to lose unsaved work?

A keyboard restart sends a proper shutdown command, so programs have a chance to save your work or ask you to save before closing. However, if a program is frozen and does not respond, you may lose changes made in that program since the last manual save. Force shutdown (holding the power button) is more likely to cause data loss because programs do not get a chance to close properly.

What is the difference between restarting and rebooting?

Restart and reboot mean the same thing — both shut down your computer and turn it back on. The terms are used interchangeably. Some people use "reboot" more often in technical contexts, but they refer to the same action.

Can I restart my computer if a program is frozen?

Yes. A keyboard restart will close the frozen program along with everything else. The program will not respond to the restart command, but the operating system will force it to close anyway. If the restart command itself does not work, try Alt + F4 to close just the frozen program, or use a force shutdown as a last resort.

How long does a keyboard restart take?

The restart command takes a few seconds to execute, but the full restart process (shutting down and turning back on) usually takes 30 seconds to 2 minutes depending on your computer. Older computers or computers with many programs running may take longer.

Is it safe to restart my computer every day?

Yes. Restarting clears your computer's memory and can improve performance. Many people restart their computers daily or weekly without any problems. A keyboard restart is just as safe as restarting through the mouse — both methods allow programs to close properly.