Screenshot 1 of 1. MinecraftHub-generated cover art for Command Keys: a floating grassy block island with a workshop of crafting tables and furnaces, under a night sky
What Command Keys works with.
| Platform | Java Edition |
|---|---|
| Loaders | Fabric, NeoForge, Forge |
| Minecraft versions | 1.19.3, 1.19.4, 1.20.6, 1.21.11, 26.1.2, 26.2, 26.3 |
| Environment | Client |
Command Keys is a command macro mod for Java that ties chat commands to keyboard keys and mouse buttons. It ships for Fabric, NeoForge and Forge, and it runs on the player's side only. A multiplayer host does not need it, and it is unsupported there.
Loaders and versions
- Fabric: Minecraft 1.19.3 to 26.3. The newest build requires Mod Menu; some builds for 1.20 to 1.21.7 require Fabric API and Mod Menu; some builds for 1.19.3 to 1.20.6 need no dependencies.
- NeoForge: Minecraft 1.20 to 26.3. The newest build needs no dependencies.
- Forge: Minecraft 1.20 to 1.20.2. The newest build needs no dependencies.
- Quilt: Minecraft 1.20 to 1.21.1, builds stopped after August 2024. The newest build requires Fabric API and Mod Menu; builds for 1.20.5 to 1.20.6 need no dependencies; builds for 1.20 to 1.20.4 need no dependencies.
What a macro can do
One key can carry several macros, and one macro can hold several commands with optional delays. You can bind almost any key or mouse button, or a pair of keys, such as T pressed while holding Shift. Six send modes decide what a press does.
- Send fires every command, with configurable delays.
- Cycle sends one command per press. For two at once, separate them with double commas, such as /tick freeze,,/say Stopped.
- Repeat loops the macro on an interval until you press the key again.
- Random picks one message each press.
- Type puts the command in the chat box without sending it.
- Edit opens a small screen where you fill in the %edit% value before sending.
Variables pull live data into a command, such as your coordinates, the block you are looking at, your last sent message, the clipboard and regex matches from received chat. A clipboard variable can be locked to a regex pattern, so only text shaped like coordinates gets sent.
Profiles and key conflicts
Profiles group macros. On joining a world or multiplayer address, the mod activates a profile linked to it, otherwise the default profile, which you can set separately for singleplayer and multiplayer.
When a macro key is already used by a vanilla control, you pick a conflict strategy. Submit ignores the macro, Assert runs both, Veto cancels the vanilla action where possible, and Avoid keeps the macro off in play but lets you trigger it from the edit screen.
Installing and opening it
Install the matching loader, then place the mod file in the mods folder. The Fabric install guide covers that loader. Press K in play to open the edit screen.
Questions about Command Keys.
4 questions
What does Command Keys do?
It lets you bind one or more chat commands to a key or mouse button. Macros can send commands in sequence, cycle through them, repeat on a timer, pick one at random, or only type them into chat for you to edit.
Does Command Keys work on multiplayer servers?
It is a player-side mod, so you install it on your own machine and nothing is needed on the host. It is unsupported when placed on a dedicated host. It can switch profiles automatically by multiplayer address.
Can I bind a command to a key combination?
Yes. You can bind almost any key or mouse button, and also a pair of keys by pressing one while holding the other. If the key clashes with a vanilla control, choose Submit, Assert, Veto or Avoid as the conflict strategy.
Can one key run several commands in order?
Yes. Send mode fires every command in a macro with optional delays between them. In Cycle mode each press sends the next command, and double commas let one press send more than one command.








