Most Locked Keyboards Are Caused by Accidental Key Presses
A locked keyboard usually means you've hit a key combination that disables typing without shutting down your computer. The most common culprit is the Num Lock key, which turns the numeric keypad on and off. On some laptops, holding Fn (Function) and pressing F11 or another key locks the entire keyboard. Windows also has an Ease of Access feature called Sticky Keys that can set up by accident and change how your keyboard responds.
The good news: unlocking takes seconds once you know which lock is active. You don't need to restart your computer or call for help. The steps depend on what locked your keyboard in the first place.
Key Takeaways
- Press Num Lock once to unlock a numeric keypad that won't type numbers.
- On laptops, hold Fn and press the key with a keyboard icon (usually F11 or F12) to toggle keyboard lock on and off.
- If Sticky Keys activated by accident, press Shift five times in a row to turn it off, or disable it in Windows Settings under Ease of Access.
- Test your keyboard by clicking in a text field and typing a few characters to confirm it's working before you assume it's broken.
Unlock a Numeric Keypad with Num Lock
The numeric keypad on the right side of a full-size keyboard has its own on-off switch. When Num Lock is off, those keys produce arrow commands and other functions instead of numbers. If you can type on the letter keys but the number pad produces arrows or nothing at all, Num Lock is off.
Press the Num Lock key once. It's usually in the top-left corner of the numeric keypad, sometimes labeled "Num Lock" or "NmLk". A light on your keyboard or screen may turn on to show Num Lock is active. Try typing a number on the keypad—it should work now.
If you don't have a numeric keypad (common on laptops and compact keyboards), this isn't your problem. Move to the next section.
Unlock a Laptop Keyboard with the Function Key
Many laptops have a keyboard lock feature built into the Function (Fn) key. Look for a key with a keyboard icon or a crossed-out keyboard symbol, usually in the F-key row (F11, F12, or another F key). Holding Fn and pressing that key toggles the keyboard lock on and off.
Hold down the Fn key and press the key with the keyboard icon. You may hear a beep or see a notification on screen. Try typing a letter—if your keyboard responds, the lock is off. If it still doesn't work, try the other F keys in the row; different laptop brands use different keys for this function.
Check your laptop's manual or search "[your laptop brand] keyboard lock key" online if you can't find the right key. The keyboard icon is usually obvious once you know to look for it.
Turn Off Sticky Keys in Windows
Sticky Keys is an accessibility feature that lets you press modifier keys (Shift, Ctrl, Alt) one at a time instead of holding them down. If it activates by accident, your keyboard may feel unresponsive or behave strangely. You'll usually see a notification on screen when Sticky Keys turns on.
Press Shift five times in a row. Windows will ask if you want to turn off Sticky Keys. Click "Yes" or press Enter. Your keyboard should return to normal when ready.
If that doesn't work, open Settings (press Windows key + I), go to Accessibility in the left menu, then click Keyboard. Under "Sticky Keys", toggle the switch to Off. Close Settings and test your keyboard.
Check for Filter Keys or Other Accessibility Features
Filter Keys is another accessibility feature that can make your keyboard seem broken. It ignores rapid key presses and repeated keys, so typing feels slow or skips characters. You'll usually see a notification when it turns on.
Open Settings (Windows key + I), go to Accessibility, then Keyboard. Look for Filter Keys and toggle it to Off. Also check Sticky Keys and Toggle Keys while you're there—turn off any feature you didn't intentionally enable.
Close Settings and test your keyboard by typing in a text field. If it still doesn't work, move to the next section.
Test Your Keyboard Before Assuming It's Broken
Before you conclude your keyboard is damaged, test it properly. Click inside a text field (like a search box or email compose window) to make sure the cursor is active. Type a few characters slowly. If nothing appears, try a different text field—sometimes a single window stops accepting input.
If your keyboard works in some programs but not others, the problem is usually that program, not your keyboard. Close and reopen the program, or restart your computer. If your keyboard doesn't work anywhere, try the steps above in order: Num Lock, Function key, Sticky Keys, and Filter Keys.
If you've tried all these steps and your keyboard still doesn't respond, the hardware may be damaged. Disconnect it (if it's external) and reconnect it, or restart your computer. If it still doesn't work after a restart, the keyboard itself may need replacement.
Prevent Accidental Keyboard Locks in the Future
Most keyboard locks happen because a key combination was pressed by accident—often when you set your laptop down or reach across the keyboard. You can reduce this by being aware of where the Fn key and Num Lock are on your specific keyboard.
If you use accessibility features intentionally, you can also turn off the keyboard shortcut that activates them. In Settings > Accessibility > Keyboard, look for "Allow the shortcut key to start Sticky Keys" or similar. Uncheck that box. You'll still be able to turn the feature on through Settings, but you won't set up it by accident.
Frequently Asked Questions
Why does my keyboard lock when I press Shift five times?
That's Sticky Keys activating. It's designed to help people who can't hold down multiple keys at once. If you don't use this feature, turn it off in Settings > Accessibility > Keyboard, and uncheck "Allow the shortcut key to start Sticky Keys" so it won't set up by accident again.
My keyboard works but types the wrong characters. What's happening?
This usually means Num Lock is on and you're typing on the numeric keypad by accident, or your keyboard layout setting is wrong. Check Num Lock first. If that's not it, go to Settings > Time & Language > Language & Region and verify your keyboard layout matches your physical keyboard.
Can I unlock my keyboard without restarting?
Yes. All the methods in this guide work without restarting. Try Num Lock, the Function key, and Sticky Keys in that order. If none of those work, then restart your computer as a last step.
Is a locked keyboard a sign my computer has a virus?
No. Keyboard locks are almost always accidental key presses or accessibility features turning on. Viruses don't typically lock keyboards this way. If your keyboard locks repeatedly even after you've disabled Sticky Keys and checked Num Lock, the hardware may be failing.
My external keyboard is locked but my laptop keyboard works fine. What do I do?
Disconnect the external keyboard from your computer (unplug the USB cable or turn off Bluetooth). Wait five seconds, then reconnect it. If it still doesn't work, try it on a different computer to see if the problem follows the keyboard. If it does, the keyboard itself may be damaged.