How to Unlock a Locked Keyboard (Laptop & Desktop)
In this article
If your keyboard is locked and not typing, the fastest fix is usually a keyboard shortcut (like Fn + F6 or Windows Key + Space) or checking the physical lock switch. For most laptops, a function key with a lock icon is the culprit; for desktops, it's often a USB issue or a stuck filter key. Below are the exact steps to regain control, whether you're on Windows, Mac, or a laptop with a dedicated lock key.
What You'll Need
- Access to your computer's settings (you can still use the mouse or touchscreen).
- A second keyboard (USB or Bluetooth) if the built-in one is completely unresponsive.
- For desktop keyboards: a paperclip or pin to press the reset button (if your keyboard has one).
Step-by-Step
- Check for a physical lock switch or key. Look at the top row of your keyboard (F1–F12) for an icon of a padlock, a key, or a keyboard with a slash. On many laptops, holding Fn and pressing that key (e.g., Fn + F6, Fn + F11) toggles the keyboard lock. On some desktop keyboards, there's a dedicated Lock key (often near the Scroll Lock). Press it once to unlock.
- Try the Windows key + Spacebar shortcut. On Windows, this toggles between keyboard layouts. If your keyboard is stuck on a layout that isn't recognized, this can restore normal typing. Press both keys simultaneously and release.
- Check if Filter Keys or Sticky Keys are enabled (Windows). Go to Settings > Accessibility > Keyboard (or Control Panel > Ease of Access > Keyboard). Turn off Filter Keys and Sticky Keys if they are on. Filter Keys can cause the keyboard to ignore quick or repeated presses, making it seem locked.
- On a Mac, check the keyboard settings. Go to System Settings > Keyboard (or System Preferences > Keyboard). Look for any toggles like "Slow Keys" or "Sticky Keys" and turn them off. Also try Control + F2 (or Fn + Control + F2) to see if the keyboard is just in a special mode.
- Restart your computer. A simple reboot clears most temporary software glitches that lock the keyboard. Save any open work first, then restart normally.
- Unplug and replug the keyboard (desktop). For a wired USB keyboard, disconnect it, wait 10 seconds, and plug it back into a different USB port. For a wireless keyboard, remove the batteries or turn it off, wait 30 seconds, then turn it back on. For Bluetooth keyboards, go to your device's Bluetooth settings, remove the keyboard, and pair it again.
- Use the on-screen keyboard as a temporary fix. On Windows, go to Settings > Accessibility > Keyboard and turn on On-Screen Keyboard. On Mac, go to System Settings > Accessibility > Keyboard and enable Accessibility Keyboard. This lets you type while you troubleshoot the physical keyboard.
- Check for driver issues (Windows). Right-click the Start button, select Device Manager, expand Keyboards, right-click your keyboard device, and choose Uninstall device. Restart your computer—Windows will reinstall the driver automatically. (This does not delete any personal data.)
- For laptops: check if the keyboard is disabled by the system. Some laptops have a BIOS setting to disable the internal keyboard. Restart your laptop and press the key to enter BIOS (often F2, F10, or Del—the exact key appears on the boot screen). Look for a "Keyboard" or "Input Devices" section and ensure the internal keyboard is set to "Enabled." Save changes and exit. Note: BIOS menus differ by brand; if you're unsure, consult your laptop's manual.
- If nothing works, try a different keyboard. Plug in a USB or Bluetooth keyboard. If the new keyboard works, the problem is hardware-related on your original keyboard. If the new keyboard also fails, the issue is with your computer's OS or USB port.
Common Mistakes
- Pressing the wrong function key. The lock key is not always F6; it varies by brand. Look for the icon, not the number.
- Forgetting to check the physical switch. Many keyboards have a tiny switch on the side or bottom that disables the keyboard. Check all edges.
- Assuming it's a hardware failure. Software glitches are far more common. Always try a restart before buying a new keyboard.
- Ignoring the num lock. If only the number pad is unresponsive, check if Num Lock is off (the light on the keyboard should be on).
Tips
- Keep your keyboard clean—dust and crumbs can cause stuck keys that mimic a lock.
- If you use a laptop, try connecting an external keyboard to see if the built-in one is the problem.
- Update your keyboard driver or OS regularly to avoid known bugs.
- For wireless keyboards, replace the batteries first—low battery can cause erratic behavior.
Troubleshooting
If the steps above didn't unlock your keyboard, work through these in order:
- Try a different USB port or computer. Plug the keyboard into another computer. If it works there, the issue is with your original computer's USB port or settings.
- Check for sticky keys physically. Gently press each key to see if any are stuck. If so, carefully pry them up with a flat object (like a credit card) and clean underneath.
- Run the Windows keyboard troubleshooter. Go to Settings > System > Troubleshoot > Other troubleshooters (or Settings > Update & Security > Troubleshoot in older versions) and run the Keyboard troubleshooter.
- Boot into Safe Mode. On Windows, restart and press Shift + Restart to get into recovery options, then choose Troubleshoot > Advanced options > Startup Settings and press 4 for Safe Mode. If the keyboard works in Safe Mode, a third-party app is interfering. On Mac, restart and hold Shift to enter Safe Mode.
- Reset the SMC (Mac laptops only). Shut down, then hold Shift + Control + Option on the left side and the Power button for 10 seconds, then release all and turn on. This resets power management and can fix keyboard issues.
- If you're using a laptop and the keyboard is completely dead, it may be a hardware failure. This often requires professional repair. Do not attempt to open the laptop yourself if it's under warranty.
Frequently Asked Questions
Why is my keyboard locked but the mouse works?
This usually means the keyboard driver is glitched or a shortcut accidentally disabled it. Try the Fn + lock key combo, restart, or reinstall the driver as described above.
Can I unlock a keyboard without a mouse?
Yes. Use the on-screen keyboard (Windows: Win + Ctrl + O; Mac: hold Option and click the keyboard icon in the menu bar) to navigate settings. Or use Tab and arrow keys to move around menus.
Does the number lock affect the whole keyboard?
No, Num Lock only affects the number pad. If the rest of the keyboard works, Num Lock is not the issue.
My keyboard types numbers instead of letters—why?
That's usually because Num Lock is on and you're using the number pad, or on laptops, the Fn key is stuck. Press Fn + Num Lock (or Fn + F11) to toggle it off.
Can a virus lock my keyboard?
It's rare, but malware can interfere with input. Run a full antivirus scan after you regain control.
Is there a universal keyboard unlock shortcut?
No single shortcut works on all devices. The most common are Fn + F6, Fn + F11, and Windows Key + Space, but always check your device's manual for the exact key.