Your keyboard is locked if keys don't register when you press them
A locked keyboard means the keys physically work but your computer won't respond to them. This usually happens because Num Lock, Caps Lock, or Scroll Lock is on, or because you've accidentally activated a keyboard lock feature in Windows. Sometimes a USB keyboard disconnects, or a laptop keyboard gets disabled in the device settings. The fix depends on which of these is actually happening.
Start by checking the three lock keys on your keyboard. Look at the top right of a standard keyboard — you'll see three small lights next to Num Lock, Caps Lock, and Scroll Lock. If any of these lights are on, press that key to turn it off. This solves the problem in most cases.
Key Takeaways
- Check whether Num Lock, Caps Lock, or Scroll Lock is on by looking for lit indicators on your keyboard, and press the key to turn it off.
- If your keyboard is completely unresponsive, try unplugging a USB keyboard and plugging it back in, or restarting your computer.
- Windows has a built-in Sticky Keys feature that can lock your keyboard; turn it off in Settings under Ease of Access.
- Laptop keyboards can be disabled in Device Manager, so check there if your built-in keyboard stopped working but an external one works fine.
- If nothing responds, restart your computer in Safe Mode to rule out software conflicts.
Check the three lock keys first
Num Lock is the most common culprit. When it's on, the number pad on the right side of your keyboard types numbers instead of working as arrow keys and navigation buttons. Press the Num Lock key once to toggle it off. The light next to it should go out.
Caps Lock makes all letters uppercase. If you're typing and everything comes out in capitals, Caps Lock is on — press it once to turn it off. Scroll Lock is less common but still worth checking. It's usually between Num Lock and Caps Lock, and it controls how some programs scroll. Press it if the light is on.
On laptop keyboards, these keys may be combined with the Function key (Fn). Look for small symbols on the keys — Num Lock might show a number pad icon, Caps Lock shows an arrow, Scroll Lock shows a scroll symbol. If you need to press Fn plus the key, do that instead.
Restart your computer if keys don't work at all
If no keys respond — not even Num Lock or Caps Lock — your keyboard may have disconnected or frozen. For a USB keyboard, unplug it from the back of your computer, wait 10 seconds, and plug it back in. Windows should recognize it automatically within a few seconds.
If that doesn't work, restart your computer. Hold the power button for 10 seconds until the screen goes black, then press it again to turn it back on. Let Windows load completely before testing the keyboard. A restart clears temporary software conflicts that sometimes lock input devices.
If you're using a laptop, you can't unplug the keyboard, so restart is your first step. If the restart doesn't fix it and you have an external USB keyboard, plug that in to see if it works. If the external keyboard works but the laptop keyboard doesn't, the problem is with the built-in keyboard hardware or drivers, not a general lock.
Turn off Sticky Keys in Windows settings
Windows has an accessibility feature called Sticky Keys that can make your keyboard behave oddly. When Sticky Keys is on, you can press Shift, Ctrl, or Alt once and it stays "pressed" until you press another key. This is meant for people who can't hold multiple keys at once, but it can feel like your keyboard is locked.
To turn it off, open Settings by pressing Windows key + I. Go to Accessibility in the left menu, then click Keyboard. Look for Sticky Keys and toggle it off. While you're there, check Toggle Keys and Filter Keys — turn those off too if they're on, as they can also interfere with normal typing.
If you can't use your keyboard to open Settings, use your mouse to click the Windows Start button, type "settings" in the search box, and click the Settings app. Then navigate to Accessibility > Keyboard and turn off Sticky Keys the same way.
Check Device Manager if your laptop keyboard stopped working
Laptop keyboards can be disabled in Device Manager, which is where Windows tracks all your hardware. If your built-in keyboard isn't working but an external USB keyboard is, the built-in one may be disabled there.
Right-click the Windows Start button and select Device Manager. Look for Keyboards in the list and click the arrow next to it to expand it. You should see your keyboard listed — it might say "Standard PS/2 Keyboard" or have your laptop brand's name. If there's a down arrow or X on the keyboard icon, it's disabled. Right-click it and select Enable device. Windows will turn it back on when ready.
If you don't see a keyboard listed at all, or if enabling it doesn't work, the keyboard hardware may be failing. Try restarting your computer first — sometimes Device Manager shows incorrect status until you restart.
Boot into Safe Mode to test for software conflicts
If your keyboard still doesn't work after trying the steps above, a program running in the background may be interfering. Safe Mode starts Windows with only the essential programs, so you can test whether the keyboard works without that interference.
Restart your computer. As soon as it starts, before the Windows logo appears, press F8 repeatedly (every half-second or so). You should see a menu with boot options. Select Safe Mode and press Enter. Windows will load with a plain black background and fewer programs running.
Test your keyboard in Safe Mode. If it works here but not in normal Windows, a program you installed is causing the problem. Restart normally and uninstall any recent programs you added before the keyboard stopped working. If the keyboard still doesn't work in Safe Mode, the problem is hardware-related or a Windows system file is damaged, and you may need to contact a technician.
Frequently Asked Questions
Why does my keyboard lock when I press certain keys?
Num Lock, Caps Lock, and Scroll Lock are designed to toggle on and off with a single key press. If you accidentally press one of these, your keyboard will behave strangely until you press it again to turn it off. Check the indicator lights on your keyboard to see which one is on.
Can I unlock my keyboard without restarting?
Yes, in most cases. Try pressing Num Lock, Caps Lock, and Scroll Lock to see if one of them is on. If that doesn't work, unplug a USB keyboard and plug it back in. For laptop keyboards, try turning Sticky Keys off in Settings. Restart is only necessary if nothing else works.
What if my keyboard works in Safe Mode but not normally?
A program you installed is interfering with your keyboard. Restart your computer normally and uninstall any software you added recently, especially keyboard utilities, gaming software, or accessibility programs. Restart again and test the keyboard.
Is there a keyboard lock feature I can turn on intentionally?
Some keyboards have a physical lock switch, usually on the back or side. Check your keyboard's manual or look for a small switch. Windows itself doesn't have a built-in keyboard lock feature — Sticky Keys and Filter Keys are accessibility tools, not security locks.
My external keyboard works but my laptop keyboard doesn't — what's wrong?
Your laptop's built-in keyboard is either disabled in Device Manager or the hardware is failing. Check Device Manager first — right-click the keyboard and select Enable device. If that doesn't work, the keyboard hardware may need replacement, and you should contact your laptop manufacturer or a repair technician.