Your keyboard is locked — here's what actually happened and how to fix it
A locked keyboard usually means one of three things: you've accidentally turned on a lock feature built into Windows or Mac, you've triggered a keyboard shortcut that disables input, or a program is preventing the keyboard from working. The fix depends on which one it is, and most of the time you can solve it in under a minute without restarting.
The most common cause is the Num Lock key on Windows laptops, which disables the number pad and sometimes the entire keyboard depending on your laptop model. On Mac, it's usually a function lock or a program running in the background. Less often, a stuck key or a driver problem is the culprit — but start with the simple fixes first.
Key Takeaways
- Press Num Lock (usually in the top right of your keyboard) to toggle it off; this solves the problem on most Windows laptops.
- On Mac, press the Function key and Num Lock together, or check System Settings to see if a lock feature is turned on.
- If a single key is stuck, try pressing it repeatedly or gently cleaning around it with a dry cloth or compressed air.
- Restart your laptop if none of the above works — this clears temporary software glitches that lock the keyboard.
Windows: Check Num Lock and function lock settings
On Windows, the Num Lock key is the first thing to check. Look for it in the top right corner of your keyboard — it usually has a light next to it that glows when Num Lock is on. Press it once to toggle it off. If your keyboard starts working, that was the problem.
If Num Lock is already off and your keyboard is still locked, look for a Function Lock key (often labeled Fn Lock). This key, usually near Num Lock or in the bottom left corner, can disable your entire keyboard when turned on. Press it to toggle it off. Some laptops also have a Fn + Esc combination that does the same thing — try that if you see Fn Lock on your keyboard.
If you have a newer Windows laptop, you can also check Settings to see if keyboard filtering is on. Open Settings, go to Ease of Access, then Keyboard, and look for "Use Filter Keys" or "Sticky Keys" — turn these off if they're enabled. These features are designed for accessibility but can feel like a locked keyboard if you don't know they're running.
Mac: Function key and Keyboard settings
On Mac, press Function (Fn) + Num Lock together to toggle the number pad lock. This is the Mac equivalent of Windows Num Lock and works the same way. If that doesn't work, your keyboard lock is probably a software setting rather than a hardware toggle.
Open System Settings, click Keyboard, then look for an option called "Function Keys" or "Use F1, F2, etc. as standard function keys." If this is turned off, your function keys are locked to special features (brightness, volume, etc.) instead of their standard behavior. Turn it on if you need the standard function keys to work. This won't lock your entire keyboard, but it can make certain keys unresponsive.
If you use an external keyboard on your Mac, the lock might be on the keyboard itself. Look for a Num Lock or Function Lock key and press it. External keyboards often have their own lock switches that are separate from your Mac's settings.
A single key is stuck or not responding
If only one key isn't working, the problem is usually physical rather than a software lock. Try pressing that key repeatedly and quickly — sometimes a stuck key will unstick after a few dozen presses. If that doesn't work, shut down your laptop and wait 30 seconds, then turn it back on. This clears any temporary software glitch affecting that key.
If the key is still stuck after restart, gently clean around it. Use a dry cloth or a can of compressed air (hold it upright and use short bursts). Do not pour liquid on your keyboard or try to pry the key off unless you're comfortable taking apart your laptop — most modern keyboards are difficult to repair once opened.
If cleaning doesn't work and the key is important to you, the keyboard may need replacement. On most laptops, this means either sending it to the manufacturer or taking it to a repair shop. On some newer models, the keyboard is soldered to the motherboard and cannot be replaced separately.
Restart your laptop if nothing else works
If you've tried toggling Num Lock, Function Lock, and checking your settings and the keyboard is still locked, restart your laptop. A restart clears temporary software problems that can lock the keyboard — things like a program crashing while it had control of input, or a driver glitch that persists until the system resets.
Save any open work first, then shut down completely (not sleep mode). Wait 30 seconds, then turn it back on. Once it boots, try your keyboard. If it works now, the problem was a software glitch. If it's still locked after restart, move to the next section.
Update or reinstall keyboard drivers on Windows
If your keyboard is still locked after restart, a driver problem might be the cause. A driver is the software that tells Windows how to use your keyboard. On Windows, you can reinstall it without any special tools.
Open Device Manager by right-clicking the Start button and selecting "Device Manager." Look for "Keyboards" in the list and click the arrow next to it to expand it. Right-click on your keyboard (usually listed as "Standard PS/2 Keyboard" or similar) and select "Uninstall device." Click "Uninstall" again to confirm. Restart your laptop — Windows will automatically reinstall the driver when it boots back up.
If you have an external keyboard, try plugging it into a different USB port. Sometimes a port stops working properly, and moving the keyboard to another port solves the problem. If the external keyboard works in a different port, the original port may need repair.
Check for programs that might be locking input
Some programs intentionally lock your keyboard while they're running — screen recording software, accessibility tools, or security programs can do this. If you recently installed something new or opened a program you don't recognize, that might be the cause.
Look at your taskbar (Windows) or menu bar (Mac) for any programs you don't recognize. Right-click them and close them. If your keyboard starts working after closing a program, that program was the culprit. You can uninstall it or check its settings to see if there's an option to allow keyboard input while it's running.
On Windows, you can also check Task Manager to see what's running. Press Ctrl + Shift + Esc to open it, look through the list of running programs, and close anything suspicious. On Mac, open Activity Monitor (in Applications > Utilities), look for unfamiliar programs, and click the X button to quit them.
Frequently Asked Questions
Why does my keyboard lock when I press certain keys together?
You're probably hitting a keyboard shortcut by accident. Common ones include Fn + Num Lock (Mac), Windows key + U (Windows accessibility menu), or Ctrl + Alt + Delete (Windows lock screen). Check your laptop's manual or search for "[your laptop model] keyboard shortcuts" to see what combinations do what on your specific device.
My keyboard works in some programs but not others — is it locked?
Not necessarily. Some programs capture keyboard input and don't pass it to other parts of your system. Try clicking somewhere else on your screen or switching to a different program. If the keyboard works everywhere except one program, that program has a setting or bug preventing keyboard input — restart the program or check its preferences.
Can I unlock my keyboard without restarting?
Yes — try toggling Num Lock or Function Lock first, then check your settings. Restart is only necessary if those don't work. Most keyboard locks are software toggles that turn on and off instantly without needing a full restart.
Is a locked keyboard a sign of a virus or security problem?
Rarely. A locked keyboard is almost always a hardware toggle (Num Lock, Function Lock) or an accessibility setting you turned on by accident. Viruses and malware usually don't lock keyboards — they work quietly in the background. If you're concerned about security, run a scan with your antivirus program, but start with the simple fixes first.
What if my keyboard is physically damaged?
If keys are visibly broken, cracked, or won't respond even after cleaning and restart, the keyboard likely needs replacement. Contact your laptop's manufacturer for repair options, or take it to a repair shop. On some laptops, you can buy a replacement keyboard and install it yourself — check YouTube for your specific model to see if it's user-replaceable.