Minecraft controls
W, A, S, D, Space and a mouse click. That's enough to get started, but Minecraft has dozens of keyboard shortcuts that many players go years without knowing about: the debug screen, moving whole stacks in one click, hiding the HUD for screenshots, copying your coordinates with a single key. Below you'll find the complete list of keys and shortcuts sorted by category, the differences between Java and Bedrock Edition, and tips for customizing your controls.
Movement
Minecraft's basic controls use the classic WASD layout you know from FPS games. The mouse turns the camera and the keyboard moves you around. You sprint with Left Ctrl or by double-tapping W. Underwater the controls change: Space carries you up toward the surface and Shift pulls you down. Sprinting underwater starts the swimming animation (since 1.13), which lets you move much faster than normal.
| Action | Key (Java) | Key (Bedrock) | Notes |
|---|---|---|---|
| Walk forward | W | W | |
| Walk backward | S | S | |
| Strafe left | A | A | |
| Strafe right | D | D | |
| Jump | Space | Space | |
| Sneak | Left Shift | Left Shift | |
| Sprint | Left Ctrl | Left Ctrl | Or double-tap W |
| Swim down (underwater) | Left Shift | Left Shift | |
| Swim up (underwater) | Space | Space | |
| Fly up (Creative) | 2x Space + Space | 2x Space + Space | |
| Fly down (Creative) | Left Shift | Left Shift | |
| Stop flying (Creative) | 2x Space | 2x Space |
Combat and interaction
The left mouse button (LMB) both attacks mobs and breaks blocks. The right mouse button (RMB) places blocks, opens doors, chests and crafting tables, and activates lots of other things. The middle mouse button is Pick Block: in Survival it selects that block from your hotbar (if you have it), and in Creative it copies any block straight into your hand.
| Action | Key (Java) | Key (Bedrock) | Notes |
|---|---|---|---|
| Attack / Break block | LMB (left mouse button) | LMB | |
| Use item / Place block | RMB (right mouse button) | RMB | |
| Pick Block | Middle mouse button | Middle mouse button | Creative: copies the block to your hotbar |
| Swap main hand / off hand | F | F | Since 1.9 |
Since version 1.9, Java Edition has an attack cooldown (the indicator under the crosshair). A sword's sweep attack hits several targets at once when the bar is full. Bedrock Edition has no cooldown, so you can spam LMB like in old Java versions. It's one of the biggest combat differences between the editions.
F swaps the item between your main hand and your off hand. In the off hand you can hold a shield, torches, maps, a Totem of Undying and food. A shield in the off hand is raised with RMB (Java) or by sneaking (Bedrock). It's a key mechanic in PvP and in fights with mobs.
Inventory and items
Managing your inventory is something you do hundreds of times per session in Minecraft, so knowing the shortcuts saves a huge amount of time. Shift + click is the king of quick moving: it instantly moves a stack between your inventory and an open container (chest, furnace, crafting table). Ctrl + Q drops the whole stack at once instead of one item at a time with Q. You'll find more about crafting and using crafting tables in our crafting guide.
| Action | Key (Java) | Key (Bedrock) | Notes |
|---|---|---|---|
| Open inventory | E | E | |
| Drop one item | Q | Q | |
| Drop the whole stack | Ctrl + Q | Ctrl + Q | |
| Hotbar slots 1-9 | 1 - 9 | 1 - 9 | |
| Scroll through the hotbar | Mouse wheel | Mouse wheel | |
| Quick-move a stack | Shift + click | Shift + click | Between your inventory and a container |
| Spread items across slots | RMB + drag | RMB + drag | Puts 1 item in each slot |
| Move to a hotbar slot | 1-9 + click | 1-9 + click | With the cursor over an item in your inventory |
| Clone a stack (Creative) | Middle mouse button | Middle mouse button |
Chat and commands
T opens the chat window, and / opens it with a slash already typed, ready for a command. On multiplayer servers, chat is your main way to talk to other players. In singleplayer you'll mostly use it for commands like /gamemode, /tp or /give. You'll find the full list of commands in our wiki section.
| Action | Key (Java) | Key (Bedrock) | Notes |
|---|---|---|---|
| Open chat | T | T | |
| Open chat with a slash (/) | / | / | |
| Scroll chat history | Page Up / Page Down | Page Up / Page Down | |
| Previous message | Up Arrow | Up Arrow | |
| Autocomplete a command | Tab | Tab |
In the chat window, Tab autocompletes commands, player names and arguments. The Up Arrow brings back your previous messages, so you don't have to type the same command again. On servers with lots of plugins, Tab shows you the available commands after you type /.
System keys
The function keys (F1-F11) control the interface, the camera perspective and other system features. F2 takes a screenshot and saves it in the .minecraft/screenshots/ folder. F1 hides the whole HUD (health bars, hotbar, crosshair), which is a must for taking nice screenshots. F5 switches the perspective between first person, third person from behind and third person from the front.
| Action | Key (Java) | Key (Bedrock) | Notes |
|---|---|---|---|
| Pause menu | Esc | Esc | |
| Take a screenshot | F2 | F2 | Saved to .minecraft/screenshots/ |
| Debug screen (F3) | F3 | None | Java Edition only |
| Fullscreen | F11 | F11 | |
| Hide the interface (HUD) | F1 | F1 | |
| Change perspective | F5 | F5 | First person / third person back / third person front |
| Cinematic camera | None | None | No default key |
| Player list (multiplayer) | Tab | Tab | |
| Highlight Players (Spectator) | None | None | No default key |
F3 shortcuts (Java Edition only)
The F3 key opens the debug screen, which shows dozens of technical details: coordinates, biome, facing direction, FPS, memory usage, chunk ID and much more. But F3 on its own is only the beginning. Combined with other keys, it gives you powerful diagnostic tools. For a detailed walkthrough of the debug screen, see our separate article: The debug screen (F3) in Minecraft.
| Action | Shortcut | Notes |
|---|---|---|
| Graphics summary | F3 + 1 | Renderer information |
| Performance profiler | F3 + L | Starts/stops profiling |
| Reload chunks | F3 + A | Reloads all loaded chunks |
| Chunk borders | F3 + G | Shows a grid of chunk boundaries |
| Hitboxes | F3 + B | Shows the hitboxes of all entities |
| Clear chat | F3 + D | Clears your entire chat history |
| Copy coordinates | F3 + C | Copies a /tp command with your coordinates |
| Copy block data | F3 + I | Copies the ID of the block you're looking at |
| Toggle advanced tooltips | F3 + H | Shows item IDs, durability and tags |
| Reload resource packs | F3 + T | Reloads your resource packs |
| Game mode switcher | F3 + F4 | Opens the game mode selector |
| Pause without the menu | F3 + Esc | Pauses the game without opening the pause menu |
| Toggle Spectator mode | F3 + N | Cycles between Spectator and your previous game mode |
Control differences: Java vs Bedrock
Java Edition and Bedrock Edition share the same set of basic keys (WASD, mouse, E, Q, Shift), but they differ in a few important details. Here are the most important differences.
Debug screen (F3)
Java: A full debug screen on F3 plus over a dozen F3 + key shortcuts. Coordinates, biome, FPS, chunk, facing direction, and the seed in singleplayer.
Bedrock: No debug screen. You can turn on coordinates in the world settings (Settings > Game > Show Coordinates). Much less information than in Java.
Attack cooldown
Java: Attack cooldown since version 1.9. The indicator under the crosshair shows when an attack will deal full damage. The sweep attack hits several targets.
Bedrock: No cooldown. You can attack as fast as you can click. No sweep attack. PvP and fighting mobs work differently.
Inventory interface
Java: Full support for Shift + click, Ctrl + Q, double-click to gather stacks, and number keys to move items to the hotbar.
Bedrock: A simplified system for moving items. Some of the Java keyboard shortcuts don't work. The interface is also designed for touch screens and controllers.
Off hand
Java: You can hold practically any item in your off hand. The F key swaps items between your hands.
Bedrock: The off hand is limited to certain items: shield, map, Totem of Undying, arrows, firework rockets. You can't hold food or torches.
If you're switching from one edition to the other, give yourself a few hours to get used to it. The differences are subtle but noticeable, especially in combat and inventory management. You can read more about the differences between the editions in our getting started guide.
Customizing your controls
The default key bindings aren't set in stone. Minecraft lets you rebind every key in Options > Controls. The Reset button restores the defaults, so you can experiment without any risk.
Popular rebinds
- Sprint on Caps Lock instead of Left Ctrl. It's easier to keep your finger on it, and Caps Lock is rarely used for anything else.
- Sneak on C or V. Some keyboards have a small Shift key, which makes sneaking along block edges for a long time awkward.
- Inventory on Tab instead of E. If you play a lot of PvP, E sits close to the movement keys and you can hit it by accident in a fight.
- Zoom on Z or C with OptiFine or Sodium Extra. Minecraft has no zoom by default, but these mods add it as a bindable key.
Mouse sensitivity settings
You set the mouse sensitivity with the Sensitivity slider in Options > Controls > Mouse Settings. The default value is 100%. For most players, 80-120% is a comfortable range. Lowering the sensitivity helps with precise aiming (bow, crossbow), while raising it makes it easier to look around quickly. If your mouse has adjustable DPI, you can also fine-tune the sensitivity outside the game.
Scroll wheel vs number keys
Many players scroll through the hotbar with the mouse wheel, but the 1-9 keys are faster and more precise. You don't have to take your eyes off the action to know which slot you've moved to. Getting used to the number keys is one of the best changes you can make to how you play, especially in PvP.
Related guides
- The debug screen (F3) in Minecraft: a detailed guide to everything the debug screen shows.
- How to turn off the narrator in Minecraft: the Ctrl + B shortcut in Java and the accessibility settings in Bedrock, for when the game starts reading aloud.
- How to change your username in Minecraft: changing your player name in Java and your Xbox gamertag in Bedrock.
- Getting started in Minecraft: a complete guide for new players.
- Installing Minecraft: how to download and install the game.
- Crafting from scratch: every recipe and crafting mechanic.
- Enchanting: the system for enchanting and upgrading items.
- Enchantment encyclopedia: the full list of enchantments in Minecraft.