KEYBOARD MAC TEST

Press every key on the Mac-layout keyboard and check each one responds.

Mac-layout keyboard — press every key and check each one responds.
Num Lock Caps Lock Scroll Lock
Num
/
*
-
7
8
9
+
4
5
6
1
2
3
Enter
0
.

Some OS key combos are captured by the system — that is expected, not a bug.

About this test

This page renders the virtual keyboard in Mac layout — ⌘ Command and ⌥ Option sit where ⊞ Win and Alt live on Windows boards — ideal for checking a MacBook's built-in keyboard or an external board hooked up to a Mac.

How it works: the browser's KeyboardEvent.code identifies the physical key position, not the character it produces. No matter which input method is active, each keycap lights by position, and the Num / Caps / Scroll indicators read the real lock states via getModifierState.

How to test: press every key from top-left to bottom-right. If the on-screen keycap lights up and shows a press count, the key is healthy; re-test any dark keys a few times to rule out a dead switch. All data stays in your browser.

Frequently asked questions

Why do some keys not respond?

Cmd+Tab, brightness, volume and media keys are handled by macOS itself, so the page never sees those events — that is normal. Letters, digits and most of the F-row all register fine.

Can I test a Windows keyboard on this page?

Yes. Detection is based on physical key position (KeyboardEvent.code), not the legend on the keycap. A Windows keyboard lights up key by key the same way — only the printed labels differ from the Mac layout.

Do I need to install anything?

No. Everything runs locally in your browser — open the page and start pressing keys. Nothing you type is ever uploaded.