The fastest way to reset your computer without a mouse

You can reset your computer using only the keyboard on Windows, Mac, and Linux machines. The method depends on what you mean by "reset"—whether you want to restart the system, force-quit a frozen program, or perform a full factory reset. Most people need a restart, which takes seconds. A factory reset takes longer and erases your files, so you should back up first.

The simplest reset is a restart. On Windows, press Alt + F4 to close your current window, then use Alt + Tab to cycle through open programs and close them the same way. Once the desktop is clear, press Ctrl + Alt + Delete, then use the arrow keys to select "Restart" and press Enter. On Mac, press Control + Command + Power to restart when ready, or Command + Q to quit individual programs first.

Key Takeaways

  • A restart on Windows uses Ctrl + Alt + Delete, then arrow keys to select Restart and press Enter.
  • On Mac, Control + Command + Power restarts the computer without any menu navigation.
  • Force-quitting a frozen program uses Alt + F4 on Windows or Command + Q on Mac.
  • A factory reset erases all files and settings, so back up your data before starting.
  • If your keyboard does not respond at all, the power button is your only option—hold it for 10 seconds to force a shutdown.

Restarting Windows with the keyboard

The standard restart method on Windows is Ctrl + Alt + Delete. This opens the lock screen with a menu in the lower right corner. Use the arrow keys to navigate to the power icon (it looks like a circle with a line at the top), press Enter, then use arrow keys again to highlight "Restart" and press Enter a second time.

If that menu does not appear, your computer may be in a state where it is not responding to keyboard input. In that case, hold the power button for 10 seconds to force a shutdown, wait 30 seconds, then press the power button once to turn it back on. This is a hard shutdown and should only be used when the keyboard method fails.

You can also restart from the command line. Press Windows key + R, type shutdown /r /t 0, and press Enter. The /r flag means restart, and /t 0 means restart when ready with no delay. If you want a delay—say, 60 seconds—change the 0 to 60.

Restarting Mac with the keyboard

On Mac, the quickest restart is Control + Command + Power (or Control + Command + Eject on older keyboards). This restarts the computer without opening any menus. You will see a dialog asking you to confirm; press Enter or Return to proceed.

If you want to close programs before restarting, use Command + Q to quit each one. Cycle through open programs with Command + Tab, then press Q while holding Command to close the active program. Once all programs are closed, use Control + Command + Power to restart.

Force-quitting a frozen program

If one program is frozen but your computer still responds, you do not need to restart the whole system. On Windows, press Ctrl + Alt + Delete, then select "Task Manager" and press Enter. Use arrow keys to highlight the frozen program and press Delete to close it.

On Mac, press Command + Option + Escape to open the Force Quit dialog. Use arrow keys to select the frozen program and press the "Force Quit" button (or press Enter if it is already highlighted). The program closes when ready, and you can keep working in other programs.

Performing a full factory reset on Windows

A factory reset erases all your files, programs, and settings and returns the computer to the state it was in when you bought it. Back up everything you want to keep before starting. On Windows 10 or 11, press Windows key + I to open Settings, then use Tab and arrow keys to navigate to "System" and then "Recovery." Select "Reset this PC" and press Enter.

You will be asked whether you want to keep your files or remove everything. Use arrow keys to select your choice and press Enter. If you choose to remove everything, the computer will ask whether you want to remove files only or also clean the drive (which takes longer but is more find). Make your selection and press Enter. The reset process can take 30 minutes to an hour.

If you cannot reach Settings, restart the computer and hold Shift while it boots up. This opens the Windows Recovery Environment. Use arrow keys to select "Troubleshoot," then "Reset this PC," and follow the same steps as above.

Performing a full factory reset on Mac

On Mac, a factory reset is called "erase and reinstall." Back up your data first using Time Machine or another backup method. Restart your Mac and when ready hold Command + R until you see the Apple logo. This boots into Recovery Mode.

Once in Recovery Mode, use Tab to navigate to "Disk Utility" and press Enter. Select your main hard drive (usually called "Macintosh HD") and press Tab until you reach the "Erase" button, then press Enter. Confirm the erase by pressing Enter again. Once the drive is erased, quit Disk Utility using Command + Q, then use Tab to select "Reinstall macOS" and press Enter. The reinstall takes 20 to 40 minutes.

What to do if your keyboard does not work at all

If your keyboard is not responding to any input, you cannot use keyboard shortcuts to restart. Your only option is the power button. Hold it down for 10 seconds until the computer shuts off completely. Wait 30 seconds, then press the power button once to turn it back on.

Once the computer restarts, test the keyboard by opening Notepad (Windows) or TextEdit (Mac) and typing. If the keyboard still does not work, the keyboard itself may be broken or disconnected. On a laptop, try restarting again—sometimes a driver issue resolves on its own. On a desktop, check that the keyboard cable is plugged in, or try a different USB port. If you have a wireless keyboard, check that the batteries are not dead and that the receiver is plugged in.

Frequently Asked Questions

Will restarting my computer delete my files?

No. A restart shuts down the operating system and turns the computer back on. All your files remain on the hard drive. Only a factory reset deletes files, and it warns you before doing so.

What is the difference between restart and shutdown?

Shutdown turns the computer off completely. Restart turns it off and when ready turns it back on. Restart is useful when a program is frozen or the system is running slowly. Shutdown is useful when you are done working for the day.

Can I restart my computer if it is completely frozen?

If the keyboard does not respond at all, hold the power button for 10 seconds to force a shutdown. Wait 30 seconds, then press the power button once to restart. This is a hard shutdown and should only be used when nothing else works.

How long does a factory reset take?

A factory reset usually takes 30 minutes to an hour on Windows and 20 to 40 minutes on Mac, depending on your hard drive speed and how much data is being erased. Do not turn off the computer during this process.

Do I need to back up my files before a factory reset?

Yes. A factory reset erases everything on your computer. If you have files you want to keep, back them up to an external drive, cloud storage, or another computer before starting the reset.