Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Unlock Keyboard Mac: Fixes for Every Situation

· 5 min read · Home Tech

In this article
  1. Quick Checks Before You Start
  2. Unlocking a Mac That Has a Login Window
  3. Keyboard Types the Wrong Characters or Symbols
  4. Function Keys (F1-F12) Not Working
  5. Keyboard Not Responding at All
  6. External Keyboard Not Working
  7. Frequently Asked Questions

If your Mac keyboard is locked, unresponsive, or typing the wrong characters, the fix depends on the cause: a stuck key, a software setting, a connected external keyboard, or a hardware issue. This guide walks you through the most common scenarios and provides step-by-step solutions to get your keyboard working again.

Quick Checks Before You Start

Before diving into complex fixes, try these simple steps that resolve many keyboard issues:

  • Disconnect any external keyboards, mice, or USB hubs. Sometimes a stuck key on an external keyboard sends a signal that interferes with the built-in one.
  • Restart your Mac. This clears temporary software glitches that can freeze the keyboard driver.
  • Check for physical debris. Turn the Mac upside down and gently shake it, or use compressed air to blow out crumbs or dust from under the keys.
  • If you use a Bluetooth keyboard, make sure it is charged and within range. Go to System Settings > Bluetooth and check its battery level.

Unlocking a Mac That Has a Login Window

If your keyboard doesn't work at the login screen, the issue is often with the built-in keyboard or the Bluetooth connection. Here’s what to try:

  1. If you have an external USB keyboard, plug it in. It should work immediately and let you log in.
  2. If you use a Bluetooth keyboard, click the Bluetooth icon in the menu bar (if visible) and reconnect it. If the keyboard isn't paired, use the on-screen keyboard: click the Accessibility icon (a person in a circle) in the top-right corner of the login screen, then select “On-Screen Keyboard.”
  3. If the built-in keyboard is completely dead, try resetting the SMC (System Management Controller) and NVRAM (non-volatile random-access memory). These control low-level hardware functions. Steps vary by Mac model, but generally: shut down, then press and hold Shift+Control+Option on the left side and the power button for 10 seconds (for Intel Macs with T2 chip). For Apple Silicon (M1/M2/M3) Macs, just shut down and wait 30 seconds. Reset NVRAM by restarting and holding Command+Option+P+R for 20 seconds (Intel only).

Keyboard Types the Wrong Characters or Symbols

If your keyboard types “ instead of @, or numbers instead of letters, the input source or modifier keys are likely misconfigured.

  • Check the input source: Go to System Settings > Keyboard > Input Sources. Make sure your language and keyboard layout (e.g., “ABC” or “U.S.”) match your physical keyboard. If you see multiple sources, the one with a checkmark is active. You can switch with Control+Space or Globe key.
  • Check modifier keys: Go to System Settings > Keyboard > Keyboard Shortcuts > Modifier Keys. Ensure that Option, Command, Control, and Caps Lock are set to their default actions. If someone remapped them, typing will be off.
  • Turn off Sticky Keys and Slow Keys: These accessibility features can cause delays or require you to hold keys longer. Go to System Settings > Accessibility > Keyboard and disable them.

Function Keys (F1-F12) Not Working

On many Macs, the top row of keys acts as media and brightness controls by default. To use them as standard function keys (F1, F2, etc.), hold the Fn (Globe) key while pressing them. To reverse this behavior:

  1. Go to System Settings > Keyboard.
  2. Look for “Use F1, F2, etc. keys as standard function keys” and toggle it on.
  3. Now the keys will work as F1-F12 without holding Fn, but you’ll need to hold Fn to use the media controls.

Keyboard Not Responding at All

If the keyboard is completely unresponsive (no lights, no response), it could be a hardware failure or a system-level issue.

  • Check the battery (if wireless): Replace or recharge the batteries in a Magic Keyboard. A low battery can cause intermittent failures.
  • Reset the SMC and NVRAM: As mentioned earlier, these resets often fix unresponsive hardware. For Intel Macs, shut down, then press Shift+Control+Option+Power for 10 seconds. For Apple Silicon, shut down and wait 30 seconds, then restart.
  • Boot into Safe Mode: Restart your Mac and hold the Shift key immediately after the chime (Intel) or after the screen turns on (Apple Silicon). Safe Mode loads only essential drivers and can tell you if a background app is causing the issue. If the keyboard works in Safe Mode, a third-party app is likely the culprit.
  • Try a different user account: If the keyboard works in another user account, the issue is with your user preferences. Go to System Settings > Users & Groups to create a test account.

External Keyboard Not Working

If your external keyboard isn't recognized, try the following:

  1. Unplug and replug it. Try a different USB port.
  2. If it's Bluetooth, forget the device in System Settings > Bluetooth, then pair it again.
  3. Check if the keyboard is compatible with macOS. Some Windows-specific keyboards lack Mac modifier keys, but they should still type. You can remap keys using System Settings > Keyboard > Modifier Keys.
  4. If the keyboard works on another computer, the issue is your Mac's Bluetooth or USB controller. Reset the SMC and NVRAM.

Frequently Asked Questions

How do I unlock the keyboard on my MacBook Pro?

There is no physical lock on a MacBook keyboard. If it's unresponsive, try restarting, checking for debris, resetting the SMC/NVRAM, or using an external keyboard. If keys are stuck, gently pry them up (if removable) and clean underneath.

Why is my Mac keyboard typing numbers instead of letters?

This usually means the “Num Lock” or “Clear” key is active on an external keyboard, or the input source is set to a different language. Check the Input Sources in System Settings and ensure the correct layout is selected. For laptops, the Fn key may be stuck.

How do I unlock the function keys on a Mac?

Go to System Settings > Keyboard and toggle “Use F1, F2, etc. keys as standard function keys.” This makes them work as F1-F12 without holding Fn. To temporarily use them as function keys, hold the Fn key.

What is the shortcut to lock my Mac keyboard?

There is no built-in shortcut to lock the keyboard. You can lock the screen with Control+Command+Q or put the Mac to sleep with Command+Option+Eject (or Power button). Third-party apps like Keyboard Locker can lock only the keyboard.

My Mac keyboard is not working after a spill. What should I do?

Immediately shut down the Mac, unplug it, and dry it upside down for 24-48 hours. Do not use a hairdryer. If it still doesn't work, you may need a hardware repair. Liquid damage is not covered by warranty.

How do I reset the keyboard on a Mac?

There's no direct keyboard reset, but you can reset the SMC and NVRAM to restore default hardware settings. Also, delete the keyboard preferences file (com.apple.keyboard.plist) in ~/Library/Preferences and restart, but this is rarely needed.