Quick fix
Plug the MacBook into power to clear any hidden low-battery alert, then open System Settings > Accessibility and turn off Slow Keys (under Keyboard) and Mouse Keys (under Pointer Control).
What it means
A MacBook keyboard that stops working is often caused by a setting, not a broken part. A hidden low-battery alert, accessibility features like Slow Keys or Mouse Keys, the wrong keyboard layout, or a wireless keyboard that has lost its connection are the usual suspects. Dirt under the keys and hardware faults are less common.
Common causes
- A low-battery alert on screen that is blocking key presses
- Slow Keys or Mouse Keys turned on in Accessibility settings
- The wrong keyboard layout or input source selected
- A wireless keyboard that is off, flat or no longer paired
- A loose cable or faulty USB port on a wired keyboard
- Dust or crumbs under the keys
- A hardware fault that needs repair
How to fix it
Work down the list. Each fix is safe to try before moving on to the next.
01If no keys work on your MacBook, connect it to powerEasy
- Plug the MacBook into its power adapter.
- Look for a low-battery alert on screen and close it with the trackpad.
- If you have an external keyboard, plug it in to see and dismiss any alert.
- Try typing again.
Why it helps: A low-battery alert you can't see can stop the built-in keyboard from responding.
02If you use Caps Lock or the Eject key, hold it a little longerEasy
- Press and hold
Caps Lockfor a moment instead of tapping it, until its light comes on. - For the Media Eject key, hold it until the eject symbol appears on screen.
Why it helps: Both keys have a short built-in delay, so a quick tap can seem to do nothing.
03If you use a wireless keyboard, reconnect itEasy
- Slide the power switch on the keyboard's back edge off (no green showing), then on (green showing).
- Using the trackpad or a mouse, open
System Settings > Bluetoothand make sure Bluetooth is on. - For a Magic Keyboard, connect it to the Mac with its charging cable, wait 1 minute, then unplug it. This pairs it and charges it.
- Check its battery level by clicking
Control Centerin the menu bar, thenBluetooth. - If Bluetooth won't turn on, restart the Mac and try again.
Why it helps: A wireless keyboard that is off, flat or unpaired can't send key presses to the Mac.
04If you use a wired keyboard, check the cable and portEasy
- Unplug the keyboard and plug it back in firmly.
- Try a different port on the Mac.
- Try the keyboard on another Mac. If it works there, this Mac may need repair.
- Try a different keyboard on this Mac. If that one works, your keyboard may need service.
Why it helps: Swapping ports and keyboards shows whether the keyboard or the Mac is at fault.
05Turn off Slow KeysEasy
- Choose
Apple menu > System Settings. - Click
Accessibilityin the sidebar, then clickKeyboard(scroll down if needed). - Turn off
Slow Keys.
Why it helps: Slow Keys makes you hold each key down before it registers, so quick taps seem to do nothing.
06Turn off Mouse KeysEasy
- Choose
Apple menu > System Settings. - Click
Accessibility, thenPointer Control(scroll down if needed). - Turn off
Mouse Keys. - Or press
Option-Command-F5and deselectMouse Keysin the panel that appears.
Why it helps: With Mouse Keys on, some letter and number keys move the pointer instead of typing.
07If keys type the wrong characters, check the keyboard layoutEasy
- Choose
Apple menu > System Settings, then clickKeyboardin the sidebar. - Under
Text Input, clickEditand turn onShow Input menu in menu bar. - Click the Input menu in the menu bar and make sure the right layout for your keyboard is selected, such as
U.S..
Why it helps: If a different layout is selected, keys type different letters or symbols than the ones printed on them.
08Clean the keyboard with compressed airMedium
- Apple gives these steps for MacBook (2015 and later) and MacBook Pro (2016 and later). Turn the Mac off and unplug it first.
- Hold the MacBook at about a 75-degree angle, so it's tilted back but not quite upright.
- Spray compressed air across the keyboard, or just the problem keys, moving from left to right. Keep the straw about half an inch from the keys and never turn the can upside down.
- Turn the MacBook onto its right side and spray left to right again.
- Turn it onto its left side and repeat.
Why it helps: Dust or crumbs under a key can stop it from pressing down or registering.
09Run Apple DiagnosticsMedium
- If the built-in keyboard isn't working, connect a USB keyboard so you can press the startup keys.
- Shut down and unplug other accessories except the keyboard, mouse and power.
- Apple silicon Mac: press and hold the power button until startup options appear. Let go when you see
Options, then press and holdCommand-D. - Intel Mac: turn it on and right away press and hold the
Dkey until you see a progress bar or a language choice. - On macOS Tahoe 26 or later you can pick a specific test, such as the keyboard. Write down any reference codes for Apple or a repair shop.
Why it helps: Apple Diagnostics checks whether the keyboard hardware has a fault.
Check it's fixed
- Every key types the character printed on it in a document or the Notes app.
- Caps Lock turns its light on and off.
- A wireless keyboard stays connected after the Mac sleeps and wakes.
When to get help
If keys still don't respond after cleaning and checking these settings, or a different keyboard works but the built-in one doesn't, contact Apple or an Apple Authorized Service Provider for repair.
Questions
How can I type while my keyboard isn't working?
Use Keyboard Viewer, an on-screen keyboard you click with the trackpad or mouse. Click the Input menu in the menu bar and choose Show Keyboard Viewer; if the Input menu isn't there, turn it on in System Settings > Keyboard > Text Input > Edit.
Why do only some keys on my MacBook work?
Mouse Keys can take over some letter and number keys, and Slow Keys can make quick taps not register. If those settings are off, dust under the keys or a hardware fault is the likely cause.
Why is my Mac typing the wrong letters or symbols?
A different keyboard layout or input source is probably selected. Turn on the Input menu in Keyboard settings and choose the layout that matches your keyboard.
Related fixes
Still stuck?
Paste the exact message to find the closest fix, or search it on Google, Microsoft, Apple, Reddit and YouTube.