The fastest way to unlock your keyboard
A locked keyboard usually means you have accidentally turned on a lock feature — most often Num Lock, Caps Lock, or Scroll Lock — or your keyboard has physically disconnected. The quickest fix is to press the lock key again to toggle it off. On Windows, look at the keyboard's indicator lights; if one is lit, that key is active. On Mac, press the key and watch the on-screen display confirm the change.
If no lock key is the culprit, try unplugging a wired keyboard and plugging it back in, or turning a wireless keyboard off and on. If the keyboard still does not respond, move to the steps below.
Key Takeaways
- Num Lock, Caps Lock, and Scroll Lock are the most common accidental locks; pressing the key again will turn it off.
- Windows shows lock status in the bottom right corner of the screen or via keyboard indicator lights.
- Disconnecting and reconnecting a wired keyboard, or power-cycling a wireless one, fixes many unresponsive keyboards.
- If your keyboard is still locked after these steps, check Device Manager on Windows or System Report on Mac to see whether the system recognizes the keyboard at all.
Check lock key status on Windows
On Windows 10 and Windows 11, the easiest way to see which lock keys are active is to look at the bottom right corner of your screen. When you press Num Lock, Caps Lock, or Scroll Lock, a small notification appears briefly showing which key you pressed and whether it is now on or off. If you do not see this notification, your keyboard may not be responding to input at all.
Older Windows machines and some keyboards have physical indicator lights — small LEDs on the keyboard itself that glow when a lock key is active. Look at the top right of your keyboard. If you see a lit light next to Num Lock, Caps Lock, or Scroll Lock, press that key to turn it off. The light should go dark and your keyboard should respond normally again.
Check lock key status on Mac
On macOS, press Caps Lock and watch the top right of your menu bar. A small icon appears showing whether Caps Lock is now on or off. The same applies to Num Lock if you are using an extended keyboard with a numeric keypad. Unlike Windows, Macs do not have Scroll Lock on modern keyboards.
If you do not see any on-screen response when you press a lock key, your keyboard may not be connected properly. Disconnect it, wait five seconds, and reconnect it. If it is a wireless keyboard, turn it off completely, wait a few seconds, and turn it back on.
Disconnect and reconnect a wired keyboard
For a wired keyboard, unplug the USB cable from the back of your computer. Wait at least five seconds — this gives the system time to fully release the keyboard driver. Plug the cable back in. Windows and Mac will automatically detect the keyboard and reinstall the driver if needed. Your keyboard should respond within a few seconds.
If the keyboard still does not work after reconnecting, try a different USB port on your computer. Some ports may be damaged or disabled. If you have access to another computer, test the keyboard there to confirm whether the problem is the keyboard itself or your computer.
Power-cycle a wireless keyboard
Wireless keyboards can lose connection if the battery is low or the pairing has dropped. Turn the keyboard completely off using the power switch on the back or bottom. Wait ten seconds. Turn it back on. The keyboard should reconnect to your computer automatically within a few seconds.
If the keyboard does not reconnect, check the battery. Replace it with a fresh one if the current battery is more than a few months old. Low battery is one of the most common reasons a wireless keyboard stops responding. After replacing the battery, turn the keyboard off and on again.
Check Device Manager on Windows
If your keyboard is still not responding, your computer may not recognize it at all. On Windows, open Device Manager by right-clicking the Start button and selecting Device Manager from the menu. Look for a section called Keyboards. Click the arrow next to it to expand the list.
If you see your keyboard listed with no warning symbol, the driver is installed correctly but the keyboard is not responding — this usually means a hardware problem. If you see a yellow exclamation mark or a question mark next to the keyboard name, right-click it and select Update driver. Windows will search for the latest driver and install it. Restart your computer after the update completes.
Check System Report on Mac
On Mac, click the Apple menu in the top left corner and select About This Mac. Click System Report. In the left sidebar, scroll down and click USB under Hardware. Look through the list of USB devices for your keyboard. If your keyboard appears in the list, macOS recognizes it and the problem is likely software-related.
If your keyboard does not appear in the USB list at all, it is not connecting to your computer. Try a different USB port if it is wired, or check the battery and power switch if it is wireless. If the keyboard still does not appear after these steps, the keyboard itself may be damaged.
Frequently Asked Questions
Why does my keyboard lock when I press certain keys?
Num Lock, Caps Lock, and Scroll Lock are designed to stay on until you press them again. They lock to change how your keyboard behaves — Num Lock switches the numeric keypad between numbers and navigation, Caps Lock capitalizes all letters, and Scroll Lock changes how some programs scroll. Pressing the key once toggles the lock on; pressing it again toggles it off.
Can I disable Num Lock so it does not turn on by accident?
On Windows, you can change this in BIOS or UEFI settings before your operating system starts. Restart your computer and press Delete, F2, or F12 during startup (the key varies by computer maker). Look for a setting called Num Lock or Boot Numlock and set it to Off. On Mac, there is no Num Lock on modern keyboards, so this is not an issue.
What if my keyboard works but only some keys respond?
If individual keys are stuck or not working, the problem is usually physical damage or debris under the keys. Try pressing the non-working key repeatedly and hard to dislodge any stuck mechanism. If that does not work, the keyboard may need cleaning or repair. Compressed air can help remove dust from under the keys without opening the keyboard.
Is there a keyboard shortcut to unlock my keyboard?
No single shortcut unlocks all keyboards because the lock depends on which key you pressed. Press Num Lock to toggle Num Lock off, Caps Lock to toggle Caps Lock off, and Scroll Lock to toggle Scroll Lock off. If your keyboard is completely unresponsive, no shortcut will work — you will need to reconnect it or check Device Manager.
Can I lock my keyboard intentionally to prevent accidental typing?
Num Lock, Caps Lock, and Scroll Lock do not prevent all typing — they only change how certain keys behave. To fully lock your keyboard, use your operating system's accessibility features. On Windows, open Settings, go to Ease of Access, and look for Filter Keys or Sticky Keys. On Mac, open System Preferences, go to Accessibility, and select Keyboard.