The fastest way to unlock your keyboard

A locked keyboard usually means one of three things: the Num Lock key is on, Caps Lock is stuck, or your keyboard has activated a lock function. The quickest fix is to press Num Lock once — this toggles the number pad on and off and solves the problem in most cases. If that does not work, press Caps Lock to turn it off, then try typing normally.

If neither key fixes it, your keyboard may have a physical lock or a software lock. Physical locks are rare on modern keyboards but appear as a small switch or button on the side or back. Software locks happen when you press a keyboard shortcut by accident — usually Ctrl + Alt + L on Windows or Command + Q on Mac — or when a program has taken control of the keyboard input.

Before you restart your computer or buy a new keyboard, work through the steps below in order. Most keyboards unlock in under a minute.

Key Takeaways

  • Press Num Lock once to toggle the number pad lock off, which solves most keyboard lock problems on Windows computers.
  • Check whether Caps Lock is on by looking at the indicator light on your keyboard, and press it once to turn it off.
  • Disconnect and reconnect your keyboard using the USB cable or wireless receiver to reset its connection to your computer.
  • Restart your computer if the keyboard remains locked after trying the above steps, as a software conflict often clears on reboot.

Check the Num Lock and Caps Lock keys first

The Num Lock key sits in the top-left corner of the number pad on the right side of most keyboards. When Num Lock is on, the number pad works as a calculator. When it is off, the same keys act as arrow keys and navigation buttons. If Num Lock is on and you did not mean to turn it on, pressing it once will turn it off and restore normal typing.

Look at your keyboard for a small light next to or above the Num Lock key. If the light is on, Num Lock is active. Press the key once to turn off the light and unlock the number pad. On laptops without a separate number pad, Num Lock may be combined with another key — check your manual or look for a key marked with both a number and an arrow symbol.

Caps Lock works differently but causes similar confusion. When Caps Lock is on, every letter you type appears in uppercase. Press the Caps Lock key once to turn it off. Most keyboards have a light that shows when Caps Lock is active, so check that indicator before assuming the keyboard is broken.

Disconnect and reconnect the keyboard

If Num Lock and Caps Lock are both off and the keyboard still will not respond, the connection between the keyboard and computer may have failed. Unplug the USB cable from the back of your computer or from the keyboard itself. Wait five seconds, then plug it back in. Your computer will recognize the keyboard again and should restore normal function.

For wireless keyboards, turn off the keyboard using the power switch on the back or bottom. Wait five seconds, then turn it back on. If the keyboard has a pairing button (usually a small button on the underside), press and hold it for three seconds while the keyboard is on. Your computer should detect the wireless keyboard and reconnect automatically.

If you have a USB receiver for a wireless keyboard, unplug the receiver from your computer, wait five seconds, and plug it back in. This resets the connection without affecting the keyboard itself.

Restart your computer

If the keyboard is still locked after checking Num Lock, Caps Lock, and reconnecting the hardware, a software conflict is likely the cause. Restart your computer by clicking the Start menu, selecting Shut Down, waiting for the computer to power off completely, and then pressing the power button to turn it back on.

During the restart, your computer will reload all drivers and reset connections to attached devices. In most cases, the keyboard will work normally after the restart. If it does not, the problem may be a driver issue or a hardware fault — see the troubleshooting section below.

Look for a physical keyboard lock

Some keyboards, especially older models or those designed for office use, have a physical lock switch. This switch is usually a small button or lever on the back or side of the keyboard. If your keyboard has one, it may be in the locked position, which disables all keys.

Check the back and sides of your keyboard for a switch labeled "Lock" or a small button that moves between two positions. If you find one, move it to the unlocked position. The keyboard should respond when ready. If you cannot find a physical lock and the keyboard is still not working, move on to the driver troubleshooting section.

Update or reinstall keyboard drivers on Windows

Keyboard drivers are the software that tells your Windows computer how to communicate with the keyboard hardware. If a driver is outdated or corrupted, the keyboard may stop responding even though it is plugged in correctly.

To check your drivers, right-click the Start button and select Device Manager. Look for "Keyboards" in the list and click the arrow next to it to expand the section. You should see your keyboard listed. If there is a yellow exclamation mark next to it, the driver needs attention. Right-click the keyboard entry and select "Update driver." Choose "Search automatically for updated driver software" and let Windows search for the latest version.

If updating does not work, right-click the keyboard again and select "Uninstall device." Restart your computer. Windows will automatically reinstall the keyboard driver when it boots up. This often fixes software conflicts that cause the keyboard to lock.

Check for keyboard lock software or shortcuts

Some programs and utilities include a keyboard lock feature that you can set up by accident. Gaming software, accessibility tools, and parental control programs sometimes have a shortcut that locks the keyboard. If you recently installed new software or changed your computer settings, check whether a program is locking the keyboard.

Look in your system tray (the small icons in the bottom-right corner of your screen on Windows, or the top-right on Mac) for any programs you do not recognize. Right-click them and look for a "Lock Keyboard" or "Disable Keyboard" option. If you find one, click it to unlock the keyboard. You can also uninstall the program if you do not need it.

On Mac, check System Preferences > Security & Privacy > Accessibility to see whether any programs have permission to control your keyboard. Remove any programs you do not recognize or trust.

Frequently Asked Questions

Why does my keyboard lock when I press certain keys together?

You may have activated a keyboard shortcut by accident. Common shortcuts that lock keyboards include Ctrl + Alt + L on Windows and Command + Q on Mac. Check your keyboard manual or the settings of any programs you have open to see whether a shortcut is active. If you find one, press the same keys again to unlock the keyboard.

Can a virus lock my keyboard?

Malware can disable your keyboard, but it is rare. If you suspect a virus, run a full scan using Windows Defender (built into Windows) or a third-party antivirus program. Restart your computer in Safe Mode before scanning — this prevents malware from running while you check for infections. If the keyboard works in Safe Mode but not in normal mode, malware is likely the cause.

What if my keyboard works in the BIOS but not in Windows?

If the keyboard responds during startup (when you see the BIOS screen) but stops working once Windows loads, a driver or software conflict is the cause. Try restarting in Safe Mode by holding Shift while clicking Restart, then selecting Troubleshoot > Advanced Options > Safe Mode. If the keyboard works in Safe Mode, uninstall any programs you installed recently, as one of them may be blocking keyboard input.

Is it cheaper to fix a locked keyboard or buy a new one?

Most locked keyboards are fixed by pressing Num Lock, restarting your computer, or updating drivers — all free. If the keyboard has a hardware fault, replacing it costs between fifteen and fifty dollars depending on the type. Try the troubleshooting steps first before buying a replacement.

Do I need to call tech support if my keyboard is locked?

No. Work through the steps in this guide first — they solve the problem in the vast majority of cases. Call tech support only if you have tried restarting your computer, reconnecting the keyboard, and updating drivers without success, or if you see a yellow exclamation mark in Device Manager that you cannot fix.