Input and focus reference

Browser Game Controls: WASD, Arrows, Mouse & Touch

Understand the control patterns most HTML5 games use and fix the common case where the browser responds but the game does not.

Keyboard mapMouse + touchFullscreen + focus fixes

If controls do nothing: wait for the game to load, click once inside its player, read the Controls box on the page, and test one movement key. Arrow keys scrolling the page or Space moving the document means the surrounding page probably still has focus.

Common browser game keys at a glance

InputCommon useTypical game typesImportant note
WASDUp/left/down/right movementAction, adventure, driving, 3DMay be movement only; aiming can still require a mouse.
Arrow keysDirection, steering, menu selectionArcade, racing, platform, puzzleThey scroll the page when the game lacks focus.
SpacebarJump, fire, flap, brake, hard dropPlatform, arcade, driving, block puzzleTap and hold can produce different results.
ShiftSprint, boost, nitroAction and racingUse only when listed; repeated presses may interact with device accessibility settings.
E or FInteract, enter, use itemAdventure and simulationThe exact key varies by title.
Mouse moveAim, camera, steer, positionShooting, 3D, aimingSome games request pointer lock after a click.
Primary clickSelect, shoot, jump, dragPuzzle, clicker, actionRight-click is not interchangeable unless stated.
Touch tap/dragMobile equivalent of click or movementMobile-friendly HTML5 gamesOn-screen buttons can cover part of a small display.

WASD versus arrow keys

WASD forms a direction cluster under the left hand: W is forward or up, A is left, S is backward or down, and D is right. This leaves the right hand free for a mouse or action keys. Arrow keys place the same four directions under the right hand and are common in classic arcade games, platformers, block puzzles, and simpler driving games.

Some games accept either layout; Escape the Police lists WASD or arrows. Others assign one layout to each local player. Do not assume both are supported—use the Controls section on the specific game page. For curated key-based choices, open our keyboard-only browser games guide.

Why the browser scrolls instead of the game moving

A game usually runs inside an embedded frame. The browser needs to know whether a key belongs to that frame or to the surrounding page. When the page has focus, arrows may scroll and Space may move down the document. Clicking in the loaded game gives the player an opportunity to receive input.

  1. Wait for the opening screen. Do not test keys on a blank or half-loaded player.
  2. Click inside the visible game area. Avoid clicking an advertisement or browser control around it.
  3. Press one listed direction. If it works, test the action key next.
  4. Use the page’s fullscreen button if helpful. Enter fullscreen only after the game responds in embedded mode.
  5. Press Escape to return. One press can release the pointer or pause; a second can exit fullscreen.

Mouse aiming and pointer lock

First-person and some 3D games use relative mouse motion: moving left should keep rotating the view even when a visible cursor would have reached the edge. Pointer lock supports that behavior. A browser normally waits for an intentional click before allowing the game to capture relative movement. Escape commonly releases it.

If the camera spins, lower your physical mouse movement and check whether the game has its own sensitivity option. If the pointer escapes the frame, click inside again. If you prefer games that never capture the pointer, choose from the mouse-only click and drag guide, which emphasizes normal cursor gestures rather than camera aiming.

Touch controls on phones and tablets

Mobile games may translate a click into a tap, a mouse drag into a finger drag, or WASD into an on-screen joystick. A title that supports touch should show buttons or react to gestures once loaded. Rotate the device only if the game layout suggests it; forcing orientation is not always necessary.

Touch and desktop controls can behave differently. A finger covers part of the target, multi-touch may be needed for movement plus action, and browser gestures can compete near screen edges. Start with one tap, then test on-screen movement before beginning a round. Do not assume a game is touch-friendly just because its page fits a phone screen.

Two players sharing one keyboard

Local games often give Player 1 WASD and Player 2 the arrows. More complex titles add action keys, which can create crowded hands or expose keyboard rollover limits. Test simultaneous movement before scoring the match. The two-player one-keyboard guide includes exact layouts for six local titles.

Control problem checklist

ProblemCheckSafe next step
No key respondsPlayer loading and focusClick inside, then reread the game’s Controls box.
Only movement worksSeparate action keysLook for Space, Shift, E, F, or mouse instructions.
Mouse moves but cannot aimPointer lock requestClick the game area and follow its on-screen prompt.
Touch buttons do not appearMobile support and orientationReload once, rotate if suggested, or choose another touch-ready game.
Input responds slowlyPerformance rather than mappingUse the lag troubleshooting checklist.
Two-player keys conflictKeyboard rolloverUse fewer simultaneous inputs or a one-key-per-player game.

Frequently asked questions

Why are WASD or arrows not working?

The player may lack focus, the game may still be loading, or the title may use another layout. Click inside, check its instructions, and retry without modifier keys held.

How do I exit fullscreen?

Press Escape. One press may first pause the game or release pointer lock, and another may leave fullscreen.

What is pointer lock?

It lets a game use relative mouse movement for continuous camera control. A deliberate click usually enables it and Escape releases it.

Put the controls to use: browse action games, racing games, or all 1,999 browser games.