2 player games on Chromebook: designing for two people on one laptop keyboard
Short answer: a school Chromebook has a keyboard and a trackpad, so the 2 player games that work on it are the ones that give each player their own keys. The design problem is that two people mashing keys on one cheap ke
Short answer: a school Chromebook has a keyboard and a trackpad, so the 2 player games that work on it are the ones that give each player their own keys. The design problem is that two people mashing keys on one cheap keyboard can hit ghosting, where a press simply never arrives. The games that work well use one of three layouts: one key each, two separate key clusters, or turns.
This story was written with the assistance of an AI writing program and checked against the sources linked below.
People search "2 player games on Chromebook" and land on SlowDen, a free browser-game site. Most school Chromebooks cannot install apps, which is why browser games are the category that still works on them. When we counted on 2 October 2026, 145 of the 172 SlowDen games that state their controls used a keyboard or a pointer, both of which a Chromebook has. Here is what the two-player ones do right.
Why do some keys stop working when two people play?
To keep costs down, most computer keyboards don't isolate every key. They use a switch matrix that assumes only a few keys are held at once, and according to Wikipedia's article on key rollover, "pressing as few as three keys can cause ghosting effects". Two players each holding a direction plus an action is four or more keys. On a laptop keyboard, some of those presses can be dropped or blocked.
You can't fix the hardware. You can design around it.
Layout 1: what if each player gets just one key?
Soccer Random and Basket Random, both by RHM Interactive, give player one W and player two the up arrow. That single key jumps, kicks, blocks and shoots. Randomised physics supplies the variety the controls leave out. Geometry Vibes 3D by gameVgames does the same with W against the up arrow.
At most two keys are held at once, so ghosting is close to impossible. It also means nobody needs to learn anything.
Layout 2: how do you split the keyboard between two clusters?
GT Cars Mega Ramps by gameVgames gives player one WASD with Shift for nitro and player two the arrow keys with N. Eat Blobs Simulator by Cursora Labs puts WASD against the arrows. Snow Rush 3D by gameVgames uses A and D with W to jump for player one and the arrows for player two. It is also honest that on mobile only single-player is available.
The two clusters sit at opposite ends of the keyboard, which tends to keep them on different rows and columns of the matrix. That makes combined presses less likely to collide, but it is not guaranteed on every keyboard, so test on a cheap one.
Layout 3: do turn-based games avoid the problem entirely?
Yes. Chess Online Playing by MIKMOK and English Checkers Online Multiplayer by Smartberry both have a "friend on the same screen" mode with click-to-move. Ludo Legend by Inlogic Software s.r.o. is played by passing one device between turns. Only one person touches the input at a time, so the trackpad is enough.
What does that look like in code?
Read physical keys, not characters. KeyboardEvent.code describes the physical key (MDN), so KeyW is in the same place on a QWERTY or AZERTY keyboard while event.key changes with the layout:
const held = new Set();
addEventListener('keydown', e => { held.add(e.code); });
addEventListener('keyup', e => { held.delete(e.code); });
addEventListener('blur', () => held.clear()); // a lost keyup must not leave a key stuck
function update() {
const p1Jump = held.has('KeyW');
const p2Jump = held.has('ArrowUp');
// ...
requestAnimationFrame(update);
}
requestAnimationFrame(update);
Two small things matter on a shared laptop. First, clear the held set on blur. Otherwise a missed keyup leaves a player running forever. Second, call preventDefault() on the arrow keys and Space while the game has focus, so the page doesn't scroll in the middle of a match.
Checklist
- [ ] Each player's keys are at opposite ends of the keyboard, or there is one key each
- [ ] No action needs more than two keys held by one player
- [ ] Tested on a cheap laptop keyboard, not just a gaming one
- [ ] Controls are listed on the first screen
- [ ] The trackpad alone is enough to start a match
Who made these games?
Every game above reaches SlowDen through our partner Playgama and is credited to its own studio. SlowDen did not make them. If you have built a local-multiplayer browser game, you can submit it for free.
Sources: Wikipedia, "Rollover (keyboard)"; MDN, "KeyboardEvent: code property"; game descriptions from each game's SlowDen page; Chromebook control count from Browser games on a school Chromebook. All read 23 November 2026.
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.