How To Fix A MacBook Keyboard Not Working (2026)
A MacBook keyboard that stops working is usually caused by a setting, a stuck key, debris, or a hardware fault.
Start with the free checks: restart, turn off Slow Keys and Mouse Keys, and test with an external keyboard.
If the keys still fail after that, run Apple Diagnostics and book a repair.
Table of Contents
- Quick answer
- Restart the Mac first
- Check for a hidden low battery alert
- Turn off Slow Keys and Mouse Keys
- Check the keyboard layout
- Keys that need a longer press
- Type with the on-screen keyboard
- Test with an external keyboard
- Rule out software with Safe Mode
- Clean out debris
- Run Apple Diagnostics
- When it needs repair
- If it doesn’t work
- FAQ
Quick answer
| Symptom | Most likely cause | First thing to try |
|---|---|---|
| Letters don’t register or lag | Slow Keys is on | Turn off Slow Keys in Accessibility settings |
| Typing moves the pointer instead of typing | Mouse Keys is on | Turn off Mouse Keys |
| Wrong characters appear | Wrong keyboard layout | Pick the right layout in the Input menu |
| One or two keys fail | Debris under the keys | Clean with compressed air |
| Whole keyboard is dead | Software glitch or hardware fault | Restart, then test an external keyboard |
Restart the Mac first
A restart clears many temporary glitches.
If the keyboard is dead, use the trackpad to open the Apple menu and choose Restart.
Wait for the Mac to finish starting, then test the keys in a text document.
Check for a hidden low battery alert
Apple notes that a MacBook may show a low battery alert you can’t see.
Connect the Mac to power, or connect an external keyboard, so you can read the alert.
Turn off Slow Keys and Mouse Keys
Two Accessibility settings can make a working keyboard seem broken.
- Choose Apple menu > System Settings, then click Accessibility.
- Click Keyboard (scroll down if needed) and turn off Slow Keys.
- Go back, click Pointer Control, and turn off Mouse Keys.
Apple says that with Slow Keys on, keys must be held longer before they register.
You can also press Option-Command-F5 to open the Accessibility Shortcuts panel and clear Mouse Keys there.
Also check that Sticky Keys is off in the same Keyboard pane.
Check the keyboard layout
If keys type the wrong characters, the layout may be wrong.
- Choose Apple menu > System Settings, then click Keyboard.
- Go to Text Input and click Edit.
- Turn on Show Input menu in menu bar.
- Open the Input menu and select the correct layout.
Keys that need a longer press
Caps Lock and the Media Eject key respond only after a longer press.
Hold Caps Lock until its indicator light comes on.
Apple lists a Caps Lock light test as a quick way to confirm the keyboard is responding.
Type with the on-screen keyboard
Apple points to the on-screen keyboard as a workaround when the physical keys fail.
It lets you click keys with the mouse or trackpad.
Engadget notes you can enable it under System Settings > Accessibility > Keyboard, so you can keep working while you troubleshoot.
Test with an external keyboard
Plug in a USB keyboard or pair a Bluetooth one.
If the external keyboard works, the Mac itself is fine and the built-in keyboard is the likely problem.
If the external keyboard fails too, the cause is more likely software.
| Result | What it points to | Next step |
|---|---|---|
| External works, built-in doesn’t | Built-in keyboard or its connection | Clean it, run diagnostics, then repair |
| Neither works | macOS or an app | Safe Mode, then check settings |
| Both work after a restart | Temporary glitch | No further action |
Rule out software with Safe Mode
Engadget suggests shutting down fully, not just sleeping, and then starting in Safe Mode.
That shows whether a third-party app is interfering with the keyboard.
Our guide on how to start a Mac in Safe Mode has the steps.
If the keys work in Safe Mode, remove recently installed apps or utilities.
A power-management glitch can also be the cause, so see how to reset the SMC or restart power management on a Mac.
Clean out debris
Engadget says that when only one or two keys fail, debris is the likely cause.
- Shut down the Mac.
- Hold the laptop at an angle.
- Spray compressed air across the keys.
- Or turn the laptop upside down and tap the back cover gently.
Don’t pull off keycaps yourself, because the mechanism is delicate.
Apple’s service procedure for a MacBook Pro says a removed keycap must be replaced with a new one, so reusing it isn’t an option.
After a spill, follow our guide to cleaning a keyboard after a spill and power the Mac off right away.
Run Apple Diagnostics
Apple Diagnostics checks the Mac’s hardware.
- Apple silicon: press and hold the power button until you see Options, then hold Command-D until the Mac restarts.
- Intel: turn on the Mac and hold D right away. If that doesn’t work, try Option-D. Release the key when you see a progress bar or a language prompt.
Apple’s own repair diagnostics test electrical operation only, not how the keys feel, so a pass doesn’t rule out a worn or sticky key.
When it needs repair
A dead key that cleaning doesn’t fix is a hardware problem, and no setting will repair it.
Apple’s service guide for a MacBook Pro says one failing key can mean replacing a keycap, while several failing keys can mean replacing the whole top case.
It also says the rubber dome can’t be replaced separately, so damage there can mean a full keyboard replacement.
| Option | Best for | Notes |
|---|---|---|
| Apple Store or Apple Support appointment | Keyboard assessment or replacement | Engadget lists this as the last resort |
| AppleCare coverage | Macs still covered | Check coverage by serial number |
| Independent repair shop | Out-of-warranty Macs | Ask for a written quote first |
Back up your files before any repair visit.
If it doesn’t work
- Use an external keyboard so you can keep working.
- Turn off every Accessibility keyboard option, then restart again.
- Note which keys fail, since that helps the repair tech.
FAQ
Why is my MacBook keyboard not typing but the trackpad works?
Slow Keys, Mouse Keys, a layout mismatch or a hardware fault can all do this, so check the settings first.
Can I fix a single dead key myself?
Cleaning with compressed air is safe to try, but don’t remove keycaps, since the mechanism is delicate.
Does a software update fix keyboard problems?
It can fix software glitches, but it won’t repair debris or damaged parts.
Is a keyboard repair expensive?
Cost depends on the model and your coverage, so get a quote from Apple before agreeing to the repair.
Sources: Apple: If your Mac doesn’t respond to key presses; Apple: Use Apple Diagnostics; Apple: MacBook Pro keyboard troubleshooting; Engadget: MacBook keyboard fix.