The Most Common Reason Your Keyboard Is Locked

Your keyboard is almost certainly not actually locked — a key or combination of keys has been pressed that disabled it temporarily. The most frequent culprit is the Num Lock key, which turns the numeric keypad on the right side of your keyboard on and off. When Num Lock is off, those keys produce numbers; when it's on, they produce arrow commands and other functions. If only the number pad isn't working, Num Lock is your answer.

The second most common issue is Scroll Lock, an older feature that some keyboards still have. When Scroll Lock is active, the arrow keys and Page Up/Page Down behave differently in spreadsheets and documents. On most modern keyboards, Scroll Lock is rare, but it exists on full-size keyboards.

A third possibility is that your keyboard has entered a sleep or disabled state because of a driver problem or a setting in your operating system. This is less common but happens when Windows or macOS stops recognizing the keyboard as an active input device.

Key Takeaways

  • Press Num Lock (usually in the top-left corner of the number pad) to toggle the numeric keypad back on if numbers aren't working.
  • Look for a Scroll Lock key on full-size keyboards and press it if arrow keys behave strangely in spreadsheets.
  • On Windows, restart your computer or unplug and replug your keyboard to reset the connection.
  • On Mac, restart your computer or go to System Settings > Keyboard to check that your keyboard is recognized.
  • If your keyboard is wireless, check that it is paired and has battery power before troubleshooting software issues.

How to Fix Num Lock and Scroll Lock

Look at the top row of your keyboard, usually above the number pad on the right side. You should see a key labeled Num Lock or Num Lk. Press it once. Many keyboards have a light that shows when Num Lock is on — if that light turns on or off, you have found the problem. Try typing numbers again.

If only the arrow keys or Page Up/Page Down keys are behaving oddly, look for a Scroll Lock key. On most keyboards, this is near Num Lock or in the top-right corner. Press it once and test your arrow keys again. Scroll Lock is less common on laptop keyboards, so you may not have this key at all.

Some keyboards require you to hold Fn (Function) and then press Num Lock or Scroll Lock. This is especially true on laptop keyboards where space is limited. Check your keyboard's manual or the manufacturer's website if pressing the key alone does not work.

Fixing a Keyboard That Does Not Respond at All on Windows

If your entire keyboard is unresponsive and Num Lock or Scroll Lock is not the issue, restart your computer. Many keyboard problems resolve themselves after a restart because Windows reloads the drivers that communicate with your keyboard.

If your keyboard is wired, unplug it from the USB port, wait 10 seconds, and plug it back in. Windows will re-detect the keyboard and reinstall the driver automatically. If your keyboard is wireless, turn it off and back on, and check that the batteries are not dead.

Open the Device Manager on Windows by right-clicking the Start button and selecting Device Manager. Look for Keyboards in the list. Click the arrow next to it to expand the category. If you see a keyboard listed with a yellow warning symbol, right-click it and select Update driver. Windows will search for the latest driver online. If no warning symbol appears, your keyboard driver is installed correctly, and the problem is likely physical or a setting elsewhere.

Fixing a Keyboard That Does Not Respond on Mac

Restart your Mac first. Hold down the power button until your Mac shuts down, wait 10 seconds, and press the power button again to turn it back on. This resets the connection between your Mac and the keyboard.

If your keyboard is wireless, make sure it is turned on and has battery power. Check the battery indicator on the keyboard itself or in the menu bar at the top of your screen. Replace the batteries if they are low.

Go to System Settings (or System Preferences on older Macs) and click Keyboard. Your keyboard should be listed as connected. If it is not, click the plus button to add a new keyboard and follow the pairing instructions. If your keyboard is listed but not responding, click it and select Remove, then add it again.

When Your Keyboard Works Partially

If some keys work but others do not, the problem is usually physical damage or debris under the keys. Shut down your computer and unplug the keyboard. Use a can of compressed air to blow out dust and crumbs from between the keys. Hold the can upright and use short bursts. Do not shake the can.

If specific keys are stuck or unresponsive after cleaning, the keyboard may have liquid damage or a mechanical failure inside. Wired keyboards are usually cheaper to replace than to repair. Wireless keyboards can sometimes be fixed by replacing the batteries or re-pairing them to your computer, but if that does not work, replacement is the most practical option.

For laptop keyboards, the same cleaning method works, but if keys remain unresponsive after cleaning, you may need to take the laptop to a repair shop. Laptop keyboards are built into the device and are more expensive to replace than external keyboards.

Testing Your Keyboard After Unlocking It

Once you have pressed Num Lock, restarted your computer, or updated your driver, test your keyboard by opening a text editor like Notepad (Windows) or TextEdit (Mac). Type a sentence using different parts of your keyboard: letters, numbers, symbols, and arrow keys. This tells you whether the entire keyboard is working or only certain sections.

If the number pad still does not work after pressing Num Lock, try pressing Num Lock again — it may have been on rather than off. If arrow keys still behave strangely, press Scroll Lock again. If you are still having trouble, write down which keys are not working and search for that specific issue, as some keyboards have unusual key combinations or settings.

Frequently Asked Questions

What does Num Lock actually do?

Num Lock switches the numeric keypad between two modes. When Num Lock is on, the number pad produces numbers. When Num Lock is off, the same keys produce arrow commands, Page Up, Page Down, Home, and End. Most people want Num Lock on, so if your number pad is not working, Num Lock is probably off.

Can I disable Num Lock permanently so it stays on?

Some keyboards have a physical switch or setting in their software to lock Num Lock in the on position. Check your keyboard's manual or the manufacturer's website. On Windows, you can also change a registry setting to make Num Lock turn on automatically when you start your computer, though this requires opening the Registry Editor and is not recommended unless you are comfortable with that process.

My keyboard works on another computer but not on mine. What does that mean?

This tells you the keyboard itself is not broken. The problem is with your computer's driver, settings, or USB port. Try the keyboard in a different USB port on your computer. If it works there, the original port may be damaged. If it still does not work, the driver or operating system is the issue, and restarting your computer or updating the driver should fix it.

Is there a way to lock my keyboard so other people cannot use it?

Windows and Mac both have built-in screen lock features that prevent keyboard input without a password. On Windows, press Windows key + L. On Mac, press Control + Command + Q. This locks your screen and keyboard together. Some third-party software also offers keyboard-only locks, but the screen lock is the most find method.

My keyboard is wireless and suddenly stopped working. What should I do first?

Check the battery level first — most wireless keyboards show a battery indicator on the device or in your system settings. Replace the batteries if they are low. Then turn the keyboard off and back on. If that does not work, re-pair the keyboard to your computer by removing it from your settings and adding it again as a new device.