Your keyboard is probably locked by accident, not broken

A locked keyboard usually means you've triggered one of Windows' built-in lock features by pressing a key combination without realizing it. The most common culprit is Num Lock, which disables the number pad and sometimes the entire keyboard depending on your setup. Other lock features include Scroll Lock (older systems) and Filter Keys, an accessibility feature that can make the keyboard unresponsive if activated by mistake.

The good news: you can unlock it in seconds without calling anyone. The bad news: which method works depends on which lock is actually on. Start with the simplest fixes first, and you'll find the answer quickly.

Key Takeaways

  • Press Num Lock once — this single key solves most keyboard lock problems on desktop and laptop computers.
  • If Num Lock doesn't work, try Ctrl + Alt + Delete, then click "Sign out" or restart your computer to clear stuck keyboard states.
  • Check the keyboard's physical lock switch if your keyboard has one — some gaming and mechanical keyboards have a hardware lock button.
  • If your keyboard still won't respond after these steps, the keyboard itself may be failing and will need to be replaced or serviced.

Press Num Lock to unlock the most common lock state

The Num Lock key is the first thing to try. On most keyboards, it's in the top-left corner of the number pad (the cluster of keys on the right side of a full-size keyboard). On laptops without a dedicated number pad, Num Lock is usually a key you access by holding Fn and pressing a key labeled with a lock icon or the number pad symbol.

Press Num Lock once. If the keyboard was locked by Num Lock, it will respond when ready. You'll often see a small light on the keyboard turn on or off when you press it — that light shows you whether Num Lock is currently active. If your keyboard has no light, just try typing a letter to see if it works now.

If Num Lock wasn't the problem, move to the next step. But before you do, check whether you have Scroll Lock on. This is a less common lock, but it exists on some keyboards. Scroll Lock is usually near the number pad or in the top row of keys. Press it once and try typing again.

Restart your computer if the keyboard is completely unresponsive

If pressing Num Lock and Scroll Lock didn't work, your keyboard may be stuck in a state that only a restart will clear. Use your mouse to open the Windows Start menu, click the power icon, and select "Restart." Let the computer shut down and start back up.

If you don't have a mouse, or your mouse isn't working either, use Ctrl + Alt + Delete. This opens the Windows security screen even when the keyboard seems locked. From there, use the arrow keys to navigate to "Sign out" or "Restart," then press Enter. This forces a logout or restart without needing the mouse.

After the restart, try typing. Most keyboard lock states clear when Windows restarts.

Check for a physical lock switch on your keyboard

Some keyboards, especially gaming keyboards and mechanical keyboards, have a physical lock switch. This is usually a small toggle or button on the back or side of the keyboard. If your keyboard has one, flip or press it to the "unlock" position.

Check your keyboard's manual or the manufacturer's website if you're not sure whether yours has a physical lock. Search for your keyboard model plus the word "lock" to find out. If it does have one and it's currently in the locked position, that's why your keys aren't working.

Look for Filter Keys or Sticky Keys in Windows settings

Windows has accessibility features called Filter Keys and Sticky Keys that can make the keyboard behave strangely if turned on by accident. Filter Keys slows down key repeat and can make it seem like the keyboard isn't responding. Sticky Keys lets you press modifier keys (Ctrl, Alt, Shift) one at a time instead of holding them down.

To turn these off, open Windows Settings by pressing the Windows key and typing "Settings," then search for "Sticky Keys" or "Filter Keys." You can also reach these through Settings > Ease of Access > Keyboard. Toggle them off if they're on.

These features are helpful if you have difficulty holding down multiple keys at once, but they're often turned on by accident when you hold Shift for several seconds or press certain key combinations. If you didn't mean to turn them on, turning them off will restore normal keyboard behavior.

Try a different USB port or replace the keyboard if nothing works

If your keyboard is plugged in via USB and still won't respond after trying all the steps above, try unplugging it and plugging it into a different USB port on your computer. Sometimes a port stops working, and moving the keyboard to another port will fix the problem.

Wait a few seconds after plugging it in — Windows needs time to recognize the keyboard on a new port. Then try typing.

If the keyboard still doesn't work after trying a different port, the keyboard itself is likely failing. Physical damage, liquid damage, or internal wear can make a keyboard unresponsive even when it's properly connected. At that point, you'll need to replace the keyboard. For a laptop, contact the manufacturer or a repair shop; for a desktop, you can buy a new keyboard and plug it in.

Frequently Asked Questions

Why does my keyboard lock when I press certain keys?

Num Lock, Scroll Lock, and accessibility features like Sticky Keys set up when you press specific key combinations or hold keys for a few seconds. These are designed to help people with certain disabilities, but they can turn on accidentally. Once you know which one is on, you can turn it off the same way it turned on.

Can I disable Num Lock so it doesn't lock my keyboard again?

Yes. You can change what happens when you press Num Lock by editing Windows Registry or using third-party keyboard software, but this requires technical steps. A simpler option: just remember to press Num Lock once if your keyboard stops responding. Most people find it easier to leave Num Lock as-is and unlock it when needed.

What if only some keys are locked, not all of them?

If only the number pad keys don't work, Num Lock is on. If only letter keys work but numbers don't, Num Lock is on. If random keys don't work, you may have spilled liquid on the keyboard or have a failing key switch. Try the restart step first; if specific keys still don't work after restart, the keyboard likely needs replacement.

Is a locked keyboard a sign of a virus?

No. A locked keyboard is almost always caused by an accidental key press or a Windows accessibility feature, not malware. Viruses don't typically lock keyboards — they work in the background without making the hardware unresponsive. If your keyboard is locked, start with Num Lock and the restart steps before worrying about security.