Skip to content

Articles

Two Keys, One Move: Testing Rollover in Browser Arcade Games

A short session log can show whether a missed jump starts in the keyboard, the browser event record, or the game's own input code.

A keyboard with two keys held down beside a laptop that shows a timing log of overlapping key press and release bars.
A two-key test log should show each keydown and keyup in order, with the browser and keyboard noted.

Two keys, one move. Direction held, jump tapped. The little character either clears the gap or walks into it. At the desk, the first question is not which key feels right. It is what the page receives: a press for each key, then a release for each key, in an order the game can use.

A keyboard event describes a key interaction, not what that key means to the game. For movement and action, the useful question is whether the game sees both presses and keeps their states separate. See MDN's KeyboardEvent reference.

Desk setup with a keyboard, two keys pressed at once, and a laptop displaying a timing log of overlapping key press and release bars.
A two-key test log should show each keydown and keyup in order, along with the browser and keyboard used.

What the keyboard event model covers

Before testing, name the events. The UI Events specification defines the KeyboardEvent interface, including the keydown and keyup types. MDN describes a KeyboardEvent as a single interaction between the user and a key. The event type says what kind: a press, a release, or the older keypress.

That vocabulary matters because "the game missed my input" can mean several things. Did the browser deliver the press? Did it deliver the release? Did the game react to what it received? A note that says "jump failed" leaves all three open. A note that lists keys and event types gives the next test something to chase.

One version detail belongs in the log. UI Events is a W3C Working Draft dated 21 February 2026, and it may change at any time. Record the version you read. Do not treat a draft as a permanent promise.

Ghosting, rollover, and the numbers

Sometimes the browser never sees the second key at all. That is ghosting, and it is a wiring limit in the keyboard, not a fault in the game. A key goes unreported because too many others are held. Anti-ghosting does not automatically mean full NKRO either. It can cover only selected zones or combinations, so a marketing label tells you little about the keys under your fingers [5].

The standard USB HID keyboard packet is 8 bytes. Six of those carry regular key codes, so a traditional USB keyboard reports at most 6 keys at once [8]. That is 6KRO. Rollover testers give a rough reading guide [8]:

  • Stuck at 6: likely a standard 6KRO keyboard.
  • Over 20: likely true NKRO.
  • Only 3 to 4: likely a low-end membrane board with conflicts.

Treat those as hints, not a verdict. A test page can also show that a keyboard passes single-key checks and still fails when several keys are held together [4]. One more caveat from the same guide: many keyboards that claim NKRO only reach 6KRO on a Mac [8]. If a board fails only when a third key goes down, that may be deliberate blocking on a membrane design [8].

Why the order of two presses matters

A two-key move is a short overlap, not one combined input. Hold a direction, press the action key, release the action, keep the direction down. In the event record, check that both keydown events arrive before either keyup ends the overlap.

The game's input code still has to use that sequence. Pure JavaScript games typically listen with document.addEventListener for keydown and keyup, and track which keys are pressed and when they are released [6]. If a game only acts on the most recent keydown, it may behave differently when the order flips. That is a code question, and the event references alone do not settle it.

So make the order visible. Try direction then action. Then action then direction. For each pair, release the first key while holding the second, then swap the release order. The test is not done when the character moves once. It is done when the log and the on-screen response agree across every sequence.

Choose events and codes that fit the input

Arcade controls are low-level key interactions. MDN notes that KeyboardEvent carries no contextual meaning and points to the input event for text entry [2]. Movement keys are not text. Keyboard events may also not fire when text arrives by other means, such as handwriting on a tablet [2].

Physical position matters too. KeyboardEvent.code identifies the key by its place on the board, not the printed character, and games bind to it [3][5]. On a different layout, the key at the W position keeps the same code. When a test fails, note the code, not just the letter. A combo that keeps losing the same physical code points to a specific cluster. A single miss proves little [5].

Keep Tab and focus in a separate test

Tab deserves its own line. A browser game may share the page with menus or other focusable elements. The sources do not say how any particular game handles Tab or focus. So do not assume a missed move is a rollover problem.

Record where focus sits before the input sequence, and whether Tab moves it. Then repeat the two-key test with focus back on the game. Keep those notes apart from the key-pair results. Reserved browser shortcuts cannot be tested reliably [5], so skip them.

Run a repeatable rollover check

Start with one key at a time. Confirm each direction and action key responds. Then use a guided combination test for exact multi-key combos, and a live keyboard tester when the question is a single key, a release state, or a physical code [5]. A good stress combo is W + A + S + D + Shift + Space [4][5]. Hold it for two seconds, then release [5]. Repeat it three times to confirm a stable result, and record the Max Simultaneous count for each connection mode [4].

Test wired, wireless, game mode, and any vendor software profile separately [4]. If results look inconsistent, close macro tools, remappers, and game overlays and run it again [4]. Also ask whether NKRO is active in the mode you play in, and whether a firmware hotkey switches it on [8].

If the log and the game disagree, note the exact step where they split. If the browser log lacks an expected event, record that without blaming the browser yet. The sources do not describe how GamesUnlimited handles these events, so state findings narrowly: this key pair, on this keyboard, in this browser, produced this sequence.

Session log: keys tested, press order, release order, event sequence, focus state, browser, keyboard, connection mode, visible response. One line per run is enough. When the second key goes down, does the game keep the first one alive?

Sources

Darius Kline

He is a house writer for GamesUnlimited. He covers co-op campaigns, controller design, and player rituals through reports from launch nights and living rooms.

More articles

Two Keys, One Move: Testing Rollover in Browser Arcade Games | GamesUnlimited