Why Your Keyboard Stopped Responding

A locked keyboard usually means one of three things: the keyboard hardware itself is disabled in your system settings, a single key or the whole keyboard is physically stuck, or a software program has taken control of input. The fix depends on which one you have, and most of them take less than a minute.

The good news is that you almost never need to replace the keyboard. Even if it feels completely dead, you can usually get it working again by trying the steps in order—start with the simplest and work toward the more involved ones.

Key Takeaways

  • Check whether the keyboard is physically stuck by looking for debris, crumbs, or a key that won't spring back, and clean it if needed.
  • Try the most common software fix first: press Ctrl + Alt + Delete, then click Sign Out, then sign back in to your account.
  • On Windows, open Settings > Devices > Keyboard and look for a toggle that says "Keyboard" or "On-Screen Keyboard"—if it is off, turn it on.
  • If a single key is stuck, gently pry it up with a thin tool and clean underneath; if the whole keyboard is dead, restart your computer.
  • If nothing works, plug in a USB keyboard to test whether the problem is the keyboard itself or your computer's input system.

Check for Physical Damage or Debris

Before you dig into settings, look at the keyboard itself. Tilt it gently and see if anything falls out—dust, crumbs, or hair can jam keys. If a single key feels stuck or won't pop back up after you press it, that key is probably the problem, not your whole system.

For a stuck key, use a thin, flat tool like a butter knife or old credit card to gently pry the key cap up from one corner. Do not force it straight up—rock it slightly as you lift. Once the cap is off, use a dry cloth or compressed air to clean underneath. Dust and dried liquid are the most common culprits. Let any moisture dry completely before you snap the cap back on and test it.

If the whole keyboard is unresponsive and you do not see any obvious damage, move on to the software checks. Physical problems usually affect one key at a time, not the entire keyboard.

Restart Your Computer and Sign Back In

The fastest software fix is to restart. Press the power button, wait for your computer to shut down completely, then turn it back on. This clears temporary glitches that can lock input devices.

If your keyboard is so locked that you cannot even reach the power button menu, hold the power button down for ten seconds until the computer shuts off. Then turn it back on normally. Once you are logged back in, test the keyboard.

If restarting does not work, try signing out and signing back in without restarting. Press Ctrl + Alt + Delete, click Sign Out, wait for the screen to clear, then sign back in with your password. This resets your user session and sometimes unfreezes input devices that a restart would not touch.

Turn On the Keyboard in Windows Settings

Windows has a setting that can disable your keyboard entirely. Open Settings by pressing the Windows key + I. Click Devices, then Keyboard on the left side.

Look for a toggle labeled "Keyboard" near the top of the page. If it is in the off position (grayed out or switched to the left), click it to turn it on. You should see it change to blue and move to the right. Test your keyboard when ready after.

While you are in this menu, scroll down and look for "On-Screen Keyboard." If that toggle is on, turn it off—an on-screen keyboard can sometimes interfere with a physical one. Close Settings and test again.

Check Device Manager for Disabled Hardware

If the Settings menu did not have a keyboard toggle, or if turning it on did not work, check Device Manager. Press Windows key + X and click Device Manager from the menu.

Look for "Keyboards" in the list and click the arrow next to it to expand it. You should see your keyboard listed—usually something like "Standard PS/2 Keyboard" or "USB Keyboard." If there is a small down arrow or red X on the keyboard name, it is disabled. Right-click on it and select Enable Device. Wait a few seconds and test your keyboard.

If you do not see a keyboard listed at all, or if you see a yellow exclamation mark, the hardware may not be recognized. Try unplugging any USB keyboard for 30 seconds, then plugging it back in. For a built-in laptop keyboard, restart your computer.

Test with a Different Keyboard

If you have a USB keyboard available, plug it in and test it. If the USB keyboard works fine, your problem is the original keyboard—it may need cleaning, repair, or replacement. If the USB keyboard also does not work, the problem is your computer's input system, not the keyboard itself.

When you know the problem is your computer and not the keyboard, you can use the USB keyboard as a temporary solution while you troubleshoot further. The steps above should have fixed most software issues, but if they did not, you may need to update or reinstall keyboard drivers—a task that usually requires help from a technician or your computer manufacturer's support line.

When to Call for Help

If you have tried all the steps above and your keyboard is still locked, the problem is likely a driver issue or a hardware failure that needs professional attention. Contact your computer manufacturer's support team or a local repair shop. Bring the information about what you have already tried—it will save them time.

If you are using a laptop and the built-in keyboard will not work even after restarting and checking Device Manager, you can use an external USB keyboard in the meantime. Most laptops will recognize a USB keyboard when ready without any setup.

Frequently Asked Questions

Can a virus lock my keyboard?

Rarely. A virus is more likely to steal your input than lock it completely. If you suspect malware, run a full scan with Windows Defender (built into Windows) or another antivirus tool. A locked keyboard is almost always a hardware problem or a disabled setting, not an infection.

What if only one key is stuck?

A single stuck key is almost always physical—debris, a broken spring, or liquid damage underneath. Remove the key cap, clean underneath with a dry cloth, and let it dry completely. If the key still does not work after cleaning, the switch underneath may be broken and the key will need to be replaced.

Does locking the keyboard protect my computer?

No. Locking your keyboard (pressing Windows key + L to lock your user account) protects your account from someone using your computer while you are away, but it does not protect against malware or network attacks. It is a convenience feature, not a security tool.

Why did my keyboard lock after I spilled something on it?

Liquid under the keys can short out the keyboard's electrical contacts or cause keys to stick physically. If you spilled liquid, unplug the keyboard when ready and let it dry completely—at least 24 hours in a warm, dry place. Do not try to use it while it is wet. If it still does not work after drying, the damage may be permanent.

Can I unlock my keyboard without restarting?

Yes. Try signing out and signing back in (Ctrl + Alt + Delete, then Sign Out), or check the keyboard toggle in Windows Settings. Both of these work without a restart. If neither works, a restart is usually the next step.