Keyboard rollover is the number of keys a keyboard can report as held at the same moment, and the familiar six is the size of a USB report rather than a count of wires. A web page's keyboard events never carry that report. We drove headless Chromium 149.0.7827.55 through playwright-core 1.61.1, with no keyboard attached, and twenty simultaneous key-downs reached a web page. The page received events. It had no way to tell whether a keyboard, a script or nothing at all had produced them.
The boot report carries six ordinary keys beside a byte of modifier bits
The six is written down in the USB-IF's Device Class Definition for HID, version 1.11, dated 27 May 2001. Its Appendix B lays out the boot keyboard input report as eight bytes: one byte of modifier keys, one reserved byte, then six keycode bytes. The left and right Ctrl, Shift, Alt and GUI keys (Windows or Command) take no keycode byte. They are eight single bits in the first byte, usages 224 to 231. So four modifiers plus six letters still fit one report; we sent that chord to a page and it arrived as ten keys, six ordinary and four modifiers.
Appendix C ties the number to that layout: "The limit is six non-modifier keys when using the keyboard descriptor in Appendix B." HID 1.11 also says that when the class driver loads, it issues a Change Protocol request, moving the keyboard from the boot protocol to the report protocol; the six it names belongs to the Appendix B descriptor.
Every key slot fills with the same error code on the seventh key
For a seventh ordinary key, HID 1.11 requires what it calls a phantom state: the keyboard "must report a phantom state indexing Usage(ErrorRollOver)" in every key slot of the report whenever more keys are held than the report has slots. ErrorRollOver is usage 0x01 on the keyboard page of the HID Usage Tables 1.6. All six slots carry it at once. The spec's worked example, which uses a smaller three-slot report, notes that the modifiers are still reported.
A boot keyboard shall also report ErrorRollOver when the combination pressed "cannot be accurately determined by the device, such as ghost key or rollover errors." HID 1.11 specifies what the keyboard sends and leaves the computer's response unstated.
Our matrix model puts every ghost at the corner of a rectangle
In our model of a fully populated switch matrix with no diodes (brute-force checked on small grids) a three-key chord produces a ghost when its keys sit on three corners of a rectangle of rows and columns, and the fourth corner reads as pressed. Such chords number 4·C(R,2)·C(C,2) out of C(RC,3), our derivation.
Across five grid sizes from 104 to 144 positions, the share of three-key chords that form a rectangle corner ran from 3.5% to 4.8%. We modelled no real keyboard, so the figures say nothing about any product. The model shows that the arrangement of keys is what causes ghosting, not the number of keys pressed. Three keys that form a rectangle corner will ghost, while a larger chord in a different pattern may not.
A browser tester counts events from the operating system
What a page receives is a KeyboardEvent, described in the W3C UI Events specification, still a Working Draft dated 21 February 2026. The event names the physical key in code, the character in key, left, right or numpad in location, and auto-repeat in repeat. The older keyCode is listed in the draft's legacy section as obsolete. The companion code values Recommendation of 22 April 2025 says code values "are based only on the key's physical location", so KeyQ is "q on a US keyboard" and is labelled a on a French AZERTY one.
Nothing in that event identifies a device. When we sent the same key down from two simulated boards and released it on one, our keyboard tester showed nothing held: one code, two key-downs and a key-up are all the page sees. Until 20 November 2026 the tester labelled ten or more held keys "NKRO" with a badge reading "measured"; the revision of that date says "20 ordinary keys reached the page at once", badged "lower bound · more than six". Past six, a page can say only that whatever reported the keys was not held to a six-slot report. It now also counts a key whose key-up arrives alone, since that proves the key reached the page.
Chromium issues no Mac key code for PrintScreen or the JIS mode keys
Chromium maps each platform's native key number to a code in one table, dom_code_data.inc, which we read at tag 149.0.7827.55. Its macOS column has no key code for PrintScreen, ScrollLock and Pause, or for the Japanese input-mode keys NonConvert, Convert and KanaMode. We checked it against the three layouts our tester draws, which it labels ANSI, ISO and JIS where W3C says 101, 102 and 106. On a Mac, three of the 104 ANSI codes have no native number and six of the 109 JIS codes; the Windows and Linux columns cover them all. We read only Chromium's table, and did not test Mac hardware.
The W3C code table calls Fn "typically a hardware key that does not generate a separate code". Chromium maps the code Fn only from the Linux input code KEY_FN; its Windows and Mac entries are empty. A Mac Japanese board's かな and 英数 keys do have Mac numbers, and W3C lists them as Lang1 and Lang2, names a 109-key layout does not contain.
Repeat delay and rate are settings the host keeps for itself
HID 1.11 says the repeat rate and the delay before the first repeat "are implemented by the host and not in the keyboard." The UI Events draft has keydown repeat "at a rate determined by the system configuration". A wait and then an interval are two settings, and averaging them yields a rate the host never used.
We injected one press followed by repeats every 33 ms after half a second. The tester reported a 501 ms delay and gave the interval separately, confirming it can distinguish the two settings. Synthetic timing carries overhead, so we quote no rate.
Korean and Japanese boards bring their own input-mode keys
In W3C's code table, a modern "101" board has 104 keys and a "102" has 105. The Korean "103" layout adds Lang1 and Lang2 for 106, and the Japanese "106" reaches 109 with IntlYen, IntlRo, NonConvert, Convert and KanaMode. The table adds that common Arabic, Cyrillic, Greek, Hindi, Khmer and Thai keyboards are all based on the 101 or 102 layout.
On a Korean board, W3C lists Lang1 as the 한/영 HangulMode key and Lang2 as Hanja. The HID Usage Tables 1.6 describe the same usages in footnotes, LANG1 as a "Hangul/English toggle" and LANG2 as "Hanja conversion". Both sit on the keyboard page, at 0x90 and 0x91. Appendix B keeps its modifier bits for usages 224 to 231 and lets the six-byte array carry any keyboard usage from 0 to 255, so in that report a held LANG1 or LANG2 key takes one of the six slots.