Your keyboard is probably locked by accident, not broken
A locked keyboard usually means a single key or the whole keyboard has been disabled by software, not that hardware has failed. The most common cause is the Num Lock key, which disables the number pad on full-size keyboards. On laptops, you may have accidentally pressed a function key combination that toggles the keyboard off. Windows and Mac both have built-in lock features, and some keyboards come with their own software that can disable keys.
The good news: you can almost always unlock it yourself in under a minute. The steps depend on what locked it and what device you are using.
Key Takeaways
- Num Lock is the most common cause of a locked keyboard on desktop computers — press it once to toggle the number pad back on.
- On laptops, check for a function key combination (usually Fn + a key with a keyboard icon) that may have disabled the keyboard.
- Windows has a built-in Sticky Keys and Filter Keys feature that can lock the keyboard if turned on by accident.
- If your keyboard has its own software, that program may have a lock or disable setting you need to turn off.
- If nothing works, restart your computer — this clears temporary software locks and resets the keyboard connection.
Check for Num Lock on a desktop keyboard
On a full-size keyboard connected to a desktop computer, look for the Num Lock key in the top-left corner of the number pad (the block of keys on the right side of the keyboard). Press it once. A light on the key or on your keyboard should turn on or off. Try typing numbers again.
If Num Lock was on and you pressed it to turn it off, the number pad will stop working. If it was off and you pressed it to turn it on, the number pad will start working again. This is the single most common reason a keyboard appears locked.
Look for a function key combination on a laptop
Laptops often use a Fn key (usually in the bottom-left corner) combined with another key to toggle the keyboard on and off. Look at your keyboard for a key with a keyboard icon or a crossed-out keyboard icon — this is usually in the top row. Press Fn + that key together.
The exact key varies by laptop brand. On many Dell and HP laptops, it is Fn + Scroll Lock. On Lenovo, it may be Fn + F3. On Mac laptops, there is no Fn + keyboard toggle, but check the Touch Bar (the row of touch-sensitive buttons at the top of the keyboard) for a keyboard icon and tap it.
If you are not sure which key it is, restart your laptop — this will reset the keyboard connection and clear any accidental toggles.
Turn off Sticky Keys or Filter Keys in Windows
Windows has two accessibility features that can lock or disable your keyboard if turned on by accident: Sticky Keys and Filter Keys. Both are meant to help people with mobility issues, but they can make the keyboard behave strangely.
To turn them off, press the Windows key + I together to open Settings. Go to Accessibility on the left side, then click Keyboard. Look for Sticky Keys and Filter Keys — both should show a toggle switch. Make sure both are set to Off. Close Settings and try your keyboard again.
If you cannot use your keyboard to navigate Settings, you can also turn these off by pressing Shift five times in a row (for Sticky Keys) or holding Shift for eight seconds (for Filter Keys). A dialog box will appear asking if you want to turn the feature off — select Yes.
Check keyboard software on your computer
If your keyboard came with its own software (common for gaming keyboards or wireless keyboards from brands like Corsair, Razer, or SteelSeries), that program may have a lock or disable setting. Open the software — it is usually in your system tray (bottom-right corner on Windows, top-right on Mac) or in your Applications folder.
Look for a setting called Key Lock, Disable Keys, Game Mode, or Macro Lock. Turn it off. If you cannot find the software or do not remember installing it, restart your computer — this will not uninstall it, but it will reset any temporary locks the software has applied.
Restart your computer if nothing else works
If you have tried the steps above and your keyboard is still locked, restart your computer. A restart clears temporary software locks, resets the keyboard connection, and turns off any accessibility features that may have been toggled on by accident.
On Windows, click the Start menu, then Power, then Restart. On Mac, click the Apple menu, then Restart. Wait for your computer to fully restart, then test your keyboard.
When to check if your keyboard is actually broken
If your keyboard is still not working after a restart, the problem may be hardware, not software. Try these checks: plug the keyboard into a different USB port (if it is wired), restart your computer one more time, or try the keyboard on a different computer if you have one available. If it does not work on another computer, the keyboard itself may be damaged.
If only certain keys are not working — for example, the letter A or the spacebar — the keyboard may have a hardware problem. Dust, liquid, or a stuck mechanism can disable individual keys. In that case, you may need to replace the keyboard. On a laptop, contact the manufacturer or a repair shop, because the keyboard is built in. On a desktop, you can buy a replacement keyboard for under $30.
Frequently Asked Questions
Why does my keyboard lock when I press Shift five times?
You are accidentally turning on Sticky Keys, a Windows accessibility feature. Pressing Shift five times in a row is the keyboard shortcut to toggle it on or off. To prevent this, go to Settings > Accessibility > Keyboard and turn off the toggle for Sticky Keys. You can also turn off the shortcut itself in the same menu.
My laptop keyboard stopped working after I spilled water on it. Can I unlock it?
Water damage is a hardware problem, not a software lock. Do not try to use the keyboard. Unplug the laptop when ready, let it dry for at least 24 hours in a warm, dry place, and then take it to a repair shop. Turning it on while wet can cause permanent damage. A replacement keyboard usually costs $100 to $300 depending on your laptop model.
Is there a way to lock my keyboard on purpose to keep others from using it?
Yes. On Windows, press Windows key + L to lock your entire computer — this requires a password to unlock. On Mac, press Control + Command + Q to lock your screen. If you want to disable specific keys, use the Sticky Keys or Filter Keys settings in Accessibility, or use keyboard software if your keyboard has its own program.
My keyboard works but some keys are stuck or do not respond. What do I do?
This is usually dust or debris under the key, not a software lock. Try gently pressing the stuck key repeatedly, or use a can of compressed air to blow dust out from under the key. If that does not work, the key mechanism may be damaged and the keyboard may need to be replaced.