Hardware Test

Updated

Guide

How to Test a Keyboard on a Mac

To test a keyboard on a Mac, open a browser keyboard test and press every key. Each key lights up as macOS passes it on, so dead keys stand out. If keys don't respond, work through Apple's checks for the connection, Slow Keys, Mouse Keys, and the keyboard layout.

Try It

Questions

How do I test my keyboard on a Mac?

Open a browser keyboard test and press every key. Each key lights up as macOS passes it to the page, and a counter shows how many you have tested. Keys that never light up need a closer look.

Why doesn't the Fn or Globe key show up in a keyboard test?

Browsers on macOS don't receive it. MDN lists the Fn key on Mac as one that fires no events in Firefox or Chrome, so no web page can test it.

Why does Caps Lock not respond on my Mac?

Apple gives Caps Lock a slight delay so an accidental press doesn't turn it on. Hold the key until its light comes on. If it never does, check the connection and Slow Keys.

Does macOS have a built-in keyboard tester?

Not as such. Apple's Keyboard Viewer shows an onscreen keyboard for typing and for finding special characters, but Apple doesn't describe it as a key tester. A browser test counts each key for you.

Why do my Mac keys type the wrong characters?

The keyboard layout is probably set wrong. Turn on the Input menu in Keyboard settings under Text Input, then pick the layout that matches your keyboard.

Sources

  1. Apple Support: If your Mac doesn't respond to key presses
  2. Apple Support: Use the Keyboard Viewer on Mac
  3. Apple Support: How to use the function keys on your Mac
  4. Apple Support: How to clean the keyboard of your MacBook or MacBook Pro
  5. MDN: KeyboardEvent code property
  6. MDN: Keyboard event code values