Mac Keyboard Test — MacBook & Magic Keyboard

Press every key on your MacBook or Magic Keyboard. Mac layout with ⌘ Command, Option and Control — keys turn green once they work.

Press any key on your keyboard to start. Click here first if nothing happens.

escF1F2F3F4F5F6F7F8F9F10F11F12⏻`1234567890-=deletetabQWERTYUIOP[]\caps lockASDFGHJKL;'returnshiftZXCVBNM,./shiftfncontroloption⌘ command⌘ commandoption←↑↓→
0 / 76Keys tested
0Held right now
0Most keys at once (rollover)
0Chatter warnings
Last key (event.key)—
Physical key (event.code)—
keyCode / which—
Location—
Held for—
Key log

    How to test a Mac keyboard

    1. Press each key once. It lights up while held and stays green afterwards.
    2. Hold fn and press F1–F12 so they send function keys instead of brightness and volume.
    3. Test both Command and Option keys — left and right are detected separately.
    4. Look for keys that stay grey or are outlined in red (registered twice from one press).

    MacBook keyboard problems

    Butterfly keyboards (2015–2019 MacBook and MacBook Pro)

    The thin “butterfly” keyboards in these models are known for keys that stick, repeat (typing “tthe”) or stop working, often because of a single crumb. The red chatter outline in this test catches repeated letters. Apple ran a keyboard service program for these models; check Apple's support site to see if yours is covered.

    Keys repeating or not registering

    Bluetooth Magic Keyboard dropping keys

    Charge it, turn it off and on, and keep it within a metre of the Mac. Wi-Fi on the 2.4 GHz band and USB 3 hubs can interfere with Bluetooth; connecting the keyboard with its cable rules out wireless issues.

    Mac and Windows key names

    MacWindowsevent.code
    ⌘ CommandWindows keyMetaLeft / MetaRight
    ⌥ OptionAltAltLeft / AltRight
    ⌃ ControlCtrlControlLeft
    deleteBackspaceBackspace
    returnEnterEnter

    Using a Windows-layout keyboard on your Mac? The full-size keyboard test shows a standard PC layout with number pad. Also test your mouse or trackpad clicks.

    Frequently asked questions

    How do I test my MacBook keyboard?

    Open this page and press every key. Each one lights up while held and stays green once it works. The layout matches a MacBook and Magic Keyboard, with Command, Option, Control and the arrow cluster in the right places.

    Why doesn’t the fn (Globe) key light up?

    The fn / Globe key is handled by macOS itself and is never sent to web pages, so no browser can detect it. Test it by holding fn and pressing F1–F12: if the function keys switch between media controls and F-keys, fn works.

    Why do F1–F12 change brightness instead of lighting up?

    By default, Mac function keys control brightness, volume and media. Hold fn while pressing them to send F1–F12, or change it in System Settings → Keyboard → Keyboard Shortcuts → Function Keys.

    Some Command shortcuts close my tab. Can I test Command?

    Pressing Command on its own is safe, and most Command combinations are blocked while testing. macOS still reserves a few, like Command+Q, Command+W and Command+Tab, which no website can block — avoid those during the test.

    Does it work with a Magic Keyboard with Touch ID or a numeric keypad?

    Yes. The test shows the compact MacBook layout; number-pad keys on a full-size Magic Keyboard still register in the key log, and Touch ID is not a key that websites can see.