Skip to main content
The Minecraft Web Client supports extensive keyboard and gamepad controls, with F3 debug keybindings for advanced functionality.

Default Controls

Movement

forward
KeyW
Move forward
back
KeyS
Move backward
left
KeyA
Move left (strafe)
right
KeyD
Move right (strafe)
jump
Space
Jump. Double-tap to toggle fly mode in creative/spectator.Gamepad: A button
sneak
ShiftLeft
Sneak/crouchGamepad: Down on D-pad
sprint
ControlLeft
Sprint. Double-tap forward movement key (W) to also toggle sprint.Gamepad: Left Stick (click)

Game Interactions

inventory
KeyE
Open inventoryGamepad: X button
drop
KeyQ
Drop one item from current hotbar slotGamepad: B button
swapHands
KeyF
Swap items between main hand and offhand
selectItem
KeyH
Pick block (middle-click equivalent) - selects the block you’re looking at
nextHotbarSlot
Gamepad
Cycle to next hotbar slotGamepad: Right Bumper
prevHotbarSlot
Gamepad
Cycle to previous hotbar slotGamepad: Left Bumper
attackDestroy
Left Mouse / Gamepad
Attack or break blockGamepad: Right Trigger
interactPlace
Right Mouse / Gamepad
Interact or place blockGamepad: Left Trigger

UI & Communication

chat
KeyT / Enter
Open chatGamepad: Right on D-pad
command
Slash
Open chat with ’/’ prefix for commands
playersList
Tab
Show player list (hold)Gamepad: Left on D-pad
debugOverlay
F3
Toggle debug overlay (shows FPS, coordinates, chunk info)

Client-Side Controls

zoom
KeyC
Zoom in (hold)
viewerConsole
Backquote
Open viewer console (only available in viewer mode)
togglePerspective
F5
Cycle camera perspective: First Person → Third Person Back → Third Person FrontGamepad: Up on D-pad
toggleFullscreen
F11
Toggle fullscreen mode
toggleMap
KeyJ
Toggle full-screen minimap

Special Keys

F1
F1
Toggle UI visibility (hide/show HUD)
F2
F2
Take screenshot (saves canvas as PNG)
Escape
Escape
  • Close current modal/menu
  • Exit pointer lock
  • Ctrl+Escape: Close all modals

F3 Keybindings

Press and hold F3, then press one of these keys for advanced functions:
Clears and reloads all chunks that are currently loaded from the server.Use case: Fix chunk rendering glitches or update chunk data
// In the code, this is at src/controls.ts:636
f3Keybinds[0].action()
Shows yellow borders around chunk sections and colored outlines around entities.Entity outline colors:
  • Yellow: Chunk borders (section geometries)
  • Red: Hostile mobs
  • Green: Passive mobs
  • Blue: Players
// Toggles options.showChunkBorders
Opens the chunks debug modal with detailed chunk loading information.
Shows a menu to select and open various widgets (waypoints, etc.).
Reloads all textures from the active resource pack. Only works if a resource pack is installed.
This also works for server resource packs.
Cycles through game modes in order: Creative → Survival → Adventure → Spectator → CreativeOnly works in singleplayer or replay sessions.In multiplayer, sends /gamemode command to server.
Displays:
  • Player username
  • Last known latency (ping)
  • Proxy server address
  • Current proxy ping
  • Player UUID
Only available in multiplayer mode.
Opens renderer-specific debug information and performance metrics.
Copies the active server resource pack to your regular resource pack collection.Only enabled when using a server resource pack.
On mobile devices, long-press the F3 button to show a menu with all available F3 actions.

Camera Rotation Controls

You can bind keys to rotate the camera without using the mouse:
rotateCameraLeft
Unbound
Rotate camera left (continuous)
rotateCameraRight
Unbound
Rotate camera right (continuous)
rotateCameraUp
Unbound
Rotate camera up (continuous)
rotateCameraDown
Unbound
Rotate camera down (continuous)

Custom Keybindings

You can customize all keybindings in the game settings:
  1. Open the pause menu (Escape)
  2. Go to Settings → Controls
  3. Click on any action to rebind it
The client supports creating custom command keybindings that can:
  • Send chat commands
  • Toggle or set specific settings
  • Execute JavaScript code (advanced)
Custom keybindings are stored in appStorage.keybindings and persist across sessions.

Gamepad Support

Full gamepad support is available with these mappings:
ActionGamepad Button
JumpA
DropB
InventoryX
Attack/BreakRight Trigger
Interact/PlaceLeft Trigger
Next HotbarRight Bumper
Prev HotbarLeft Bumper
SprintLeft Stick (click)
Sneak/DownRight Stick (click)
MovementLeft Stick
CameraRight Stick
ChatD-pad Right
Players ListD-pad Left
PerspectiveD-pad Up
SneakD-pad Down
PauseStart
Back (UI)B
Gamepad controls require the game to have focus. Some browsers may require user interaction before gamepad input is detected.

See Also

Build docs developers (and LLMs) love