Mac keyboard tester
Opens on the MacBook layout. Press every key to test it.
Connect a keyboard
This test needs a physical keyboard. Pair a Bluetooth keyboard or plug in a USB one, then press any key: the map appears. The on-screen keyboard can't be tested because it doesn't send real key events.
Held now · rollover
Ghosting check: hold W A S D, then add Shift and Space. If a held key doesn't light up, the keyboard can't register that combination.
Key log
- codekeyheld
- Progress
- –
- Most held at once
- –
- Last key
- –
- Chatter
- –
- Layout
- –
Runs on this device. Nothing is uploaded or stored. No sign-up. How it works
Works in Safari, Chrome, Edge and Firefox on macOS. Magic Keyboards also work with an iPad, but iPadOS keeps some keys for itself.
Testing a MacBook or Magic Keyboard
The map opens on the Mac legends: esc, delete, return, ⌘ cmd, ⌥ option and control, in the 75% shape of a MacBook or compact Magic Keyboard. Choose Full (100%) for the Magic Keyboard with Numeric Keypad.
- Browser shortcuts still work. ⌘Q, ⌘W, ⌘R, ⌘T, ⌘N and ⌘L go to the browser as usual (⌘W closes the tab), so test ⌘ on its own or with other letters.
- fn / globe is read by macOS and the keyboard, not by web pages, so it stays grey. Test it by holding fn and pressing F1: the screen should not dim.
- Top row: by default it controls brightness, Mission Control, Spotlight and media. macOS takes some of those (F3, F4) before the page sees them. Hold fn to test F1–F12, or turn on System Settings → Keyboard → Keyboard Shortcuts → Function Keys → Use F1, F2, etc. keys as standard function keys.
- Touch Bar MacBook Pros have no physical F-keys. The Touch Bar's virtual Esc and F-keys (hold fn to show them) do send key events and light up here.
- Caps Lock on a Mac ignores very short taps by design, to prevent accidental presses. Press it firmly.
Mac keyboard problems and fixes
Some keys don't type
- System Settings → Accessibility → Keyboard: turn off Slow Keys (keys must be held to register) and check Sticky Keys.
- Accessibility → Pointer Control → Alternate pointer actions: turn off Mouse Keys, which takes over keys around I, J, K, L, M and the numpad.
- Keys lighting up here but typing wrong characters? The input source is wrong: check the menu-bar input menu or System Settings → Keyboard → Text Input.
Keys repeat, stick or type twice
On 2016–2019 MacBook Pro and 2015–2019 MacBook and MacBook Air models, the thin "butterfly" keyboard is known for keys that stick, repeat or don't respond. The double typing test measures how often a key fires twice. Compressed air at a 75° angle, left to right, is Apple's own advice. Apple's free keyboard service programme for these models has now ended for nearly all of them, so a repair is paid.
Magic Keyboard not responding
- Check it's switched on (green at the switch) and charged; plug in its cable for a minute, which also re-pairs it.
- System Settings → Bluetooth: remove it and pair it again.
Built-in keyboard dead
- Intel MacBooks: reset the SMC: shut down, then hold Shift + Control + Option + power for 10 seconds.
- Apple silicon: shut down completely, wait 30 seconds and start up again; that resets the same controller.
- Run Apple Diagnostics: Apple silicon: hold the power button until the startup options appear, then press ⌘ D. Intel: hold D while starting up.
Mac keys and what the browser sees
| Key | Lights up here? | Notes |
|---|---|---|
| ⌘ command (left/right) | Yes | Tested separately; Mac apps rarely care which side |
| ⌥ option (left/right) | Yes | Also changes the character a letter types (é, ü, ©) |
| fn / globe | No | Handled by macOS; no web page can see it |
| F3 Mission Control, F4 Launchpad | Often no | macOS acts first; hold fn to test as F3/F4 |
| Touch ID | No | It's a sensor, not a key |
| eject (older keyboards) | No | Handled by macOS |
| caps lock | Yes | Ignores very short taps by design |
macOS also has its own on-screen check: enable Show Input menu in menu bar (System Settings → Keyboard → Text Input), then choose Show Keyboard Viewer. Keys highlight as you press them.
Mac keyboard FAQ
How do I test my MacBook keyboard?
Open this page in Safari or Chrome and press every key: it starts on the MacBook layout. Keys turn black once they register. fn and Touch ID never light up because macOS handles them before the browser.
Why are some keys on my MacBook not working?
Check Slow Keys and Mouse Keys in Accessibility settings first. If keys still stay white here, it's usually debris; on 2015–2019 butterfly-keyboard MacBooks it's a known hardware fault. Blow compressed air under the keys at an angle.
How do I fix a MacBook keyboard that types double letters?
Clean the key with compressed air, holding the MacBook at 75°. If the double typing test still flags the key, the switch is worn. On butterfly keyboards the fix is a keyboard replacement at Apple or a repair shop.
Does this work with a Magic Keyboard on iPad?
Yes, in Safari on iPad with a Magic Keyboard or any Bluetooth keyboard. iPadOS keeps some keys and shortcuts (globe, ⌘ Tab, ⌘ Space) for itself, so those won't light up.
Why can't I test the fn key on a Mac?
The fn (globe) key is read by macOS and the keyboard's controller, and web pages never receive an event for it. Hold fn and press a top-row key: if the top row switches between F-keys and brightness or volume, fn works.