Quacky's Better Keybinds
Rebind any action to anything — multiple keys, mouse buttons, and combos. Client-side only. Works on Lunar, Modrinth App, Feather, and vanilla Fabric.
Features
- Bind anything — every action in the Controls menu, vanilla and modded, is bindable.
- Multiple binds per action — give one action as many key combos as you want.
- Combos — chain keys and mouse buttons together (
Shift + Left Click,Ctrl + Alt + P). - Order-sensitive option — per bind, require the exact press order, or allow any order.
- Smart conflict resolution — the most specific combo always wins.
- Multi-key capture — press your whole combo; it auto-finalizes after 3 seconds idle.
- Mouse support — all 8 mouse buttons, including side buttons.
- Live bind list — see every bind in one panel, remove any with one click.
- ModMenu config — everything lives in a clean in-game GUI.
Install
- Install Fabric Loader ≥ 0.19.2 for MC 1.21.11.
- Drop into
mods/:- Fabric API
0.141.4+1.21.11or newer - Mod Menu
17.0.0or newer quackys-better-keybinds-1.0.0.jar
- Fabric API
Client-only — no server-side install needed.
Usage
- Open Mod Menu → Quacky's Better Keybinds.
- Search for the action you want in the search bar.
- Click the action to select it.
- Click Set Keys, then press your combo (one key or many). It locks in after 3s.
- Toggle Order to choose whether press order matters for that combo.
- Click Save Bind — it appears under Your keybinds and saves instantly.
- Remove any bind with the red X. Close the screen to persist.
Compatibility
| Minecraft | 1.21.11 only (API drift means cross-version isn't a single jar) |
| Loaders | Fabric. Lunar / Modrinth / Feather work as long as they ship 1.21.11 |
| Conflicts | None known — binds drive the game's real KeyMappings, so modded actions work too |
Known limitations
- Binds never fire while a screen or menu is open, so they can't operate GUIs.
- Actions are read from the game's keybind list — an action with no registered KeyMapping can't be bound.
License
MIT. Quack responsibly.
Other Mods
Make sure to check out my organisation to find other mods! Helps a lot and lets me make more mods — and maybe a common library in the future :)
How to Install Quacky's Better Keybinds (Mod)
Quacky's Better Keybinds by Unknown is verified for Fabric across Minecraft versions 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5 (latest release: 1.2.0, file size: 150 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5) and platform (Fabric).
- Make sure you have the compatible loader or environment installed for Fabric.
- Move the downloaded Quacky's Better Keybinds file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version## Quacky's Better Keybinds — Version 1.2.0
- Type:** Feature release
## Overview
Binds can now send chat messages and commands, run chains of actions with tick delays between them, repeat while held, and warn you when keys are already taken. Every control in the config screen has a tooltip.
## New Features
### Chat & command binds
Pick **Send Chat Message / Command** (pinned to the top of the action list), type the text in the message box, Set Keys, Save.
- Plain text is sent as chat; a leading
/runs it as a command - Sent lines go into chat history, so up-arrow in chat recalls them
- Works in every game mode; never fires while a menu, chat or container is open
- Each message is its own action, so it gets combos, groups, enable toggles and conflict resolution like any other bind
### Repeat mode
Per bind: **Once** (one activation per press) or **Repeat** (keep firing while held).
- Delay unit: **ms**, **ticks** or **s** — click the unit button to cycle
- Applies to chat binds and normal actions alike (each repeat is one discrete click, so Drop, Hotbar, Use etc. all repeat)
- Repeats run on the client tick, so the floor is one tick (50 ms); faster delays fire every tick
- Saving the same keys on the same action again updates its repeat settings
### Action sequences (chains)
Bind one combo to a chain of actions with tick delays between them — e.g.
Ctrl + Mouse 5 → hotbar 7, **+1 tick** hotbar 9, **+0** attack. Or a single delayed step: Ctrl + Mouse 5 → **+1 tick** hotbar 9.- Pick **Action Sequence (chain)** (top of the action list) to open the sequence editor
- Each step = an action + how many ticks to wait after the previous step (after the key press for the first step);
0= same tick - Any action works as a step, including chat messages and commands; each step taps the action once
- Reorder (
^/v), remove (X) or click a step to load it back into the editor; up to 32 steps, 1200 ticks per wait - Click a sequence bind in *Your keybinds* to edit its steps in place — keys, group and repeat settings are kept
- Timing is tick-exact and matches a vanilla press: a
+0step lands on the same tick as the press,+1on the next - Steps that land on the same tick run in the game's own order (hotbar before attack/use), so *hotbar 9, +0 attack* hits with slot 9
- Once started, a chain finishes even if you let go; opening a screen cancels it
- Works with repeat mode: a held repeating sequence restarts every delay
### Duplicate key detection
- When you capture keys, the status line warns if they already trigger another bind
- Single-key binds are also checked against vanilla controls bound to that key (skipped while **Override** is ON, since the vanilla action is muted anyway)
- Binds in the list that share keys are shown in orange; hover to see what else they trigger
### Tooltips
Every button and field has help text on hover, as do the action list, group chips and each cell of the bind list.
## Ot
...
## Quacky's Better Keybinds — Version 1.1.0
- Release Date:** August 15, 2026
- Type:** Bug fix release
## Overview
Two fixes: binds now fire on the same tick you press them (no more losing attribute/weapon swaps to a tick of lag), and binds work inside the inventory and every other container screen.
## Fixes
### Input no longer runs a tick behind
- Symptom:** every bind fired one tick (50 ms) after the key went down. Anything timing-sensitive — attribute swapping, weapon swap into an attack, hotbar juggling mid-combo — landed a tick late and often missed the window.
- Cause:** input was polled at
END_CLIENT_TICK. The game reads keybinds part-way *through*Minecraft.tick(), which had already happened by then, so everything the mod set was picked up on the *next* tick.
- Fix:** input is now driven from the game's own GLFW callbacks (
KeyboardHandler.keyPress,MouseHandler.onButton), the exact place vanilla registers its own presses. Bound actions are resolved and applied the moment the key event arrives, before the game reads keybinds on that same tick — identical timing to a vanilla keybind, zero added latency.
HEADof the callback updates held-key state, so combos are current before anything else sees the eventRETURNruns the binds after vanilla applied its own state, so **Override Vanilla** can still mute the original action- Per-tick polling is kept, moved to
START_CLIENT_TICK, and demoted to a re-sync for what callbacks can't see (window focus loss, events eaten by a screen) - Releases propagate immediately too — held actions stop on the tick you let go
### Keybinds work in the inventory again
- Symptom:** binds did nothing in the inventory, chests, furnaces or any other container — items could not be swapped to a hotbar slot, moved to the offhand, or dropped with a custom bind.
- Cause:** two separate blocks. The mod skipped all bind processing whenever a screen was open, and vanilla container screens only ever compare the raw key against *their own* KeyMappings (
checkHotbarKeyPressed), which a remapped or combo bind never matches.
- Fix:** a new
AbstractContainerScreenmixin resolves mod binds itself and performs the matching slot operation before vanilla's check, then cancels so nothing happens twice.
Supported in containers:
| Bound action | Effect on the hovered slot |
|---|---|
| Hotbar 1–9 | Swap with that hotbar slot |
| Swap Offhand | Swap with the offhand |
| Drop | Throw the stack (hold
Ctrl for the whole stack) || Pick Item | Clone the stack (creative) |
| Inventory | Close the screen |
Details:
- Combo and mouse-button binds work, not just single keys —
mouseClickedis handled alongsidekeyPressed - A bind only fires if the key that was *just pressed* is part of that combo, so a held modifier can't set an action off on an unrelated keystroke
- Typing is untouched: input aimed at a focused text field (anvil rename, creative search) is left to vanilla
- Vanilla'
- Added Groups for easier management
## Quacky's Better Keybinds — Version 1.0.0
- Release Date:** June 3, 2026
## Overview
Quacky's Better Keybinds lets you rebind any action in the game to any key, mouse button, or combo. Multiple binds per action, optional order-sensitive combos, and smart conflict resolution. In-game ModMenu UI. **Client-side only.**
## Features
### Binding
- Bind Anything** — every action in the Controls menu is bindable, vanilla and modded
- Multiple Binds** — assign as many separate combos to one action as you want
- Combos** — chain keyboard keys and mouse buttons (
Shift + Left Click,Ctrl + Alt + P) - Mouse Support** — all 8 mouse buttons including side buttons (
MOUSE4–MOUSE8) - Order-Sensitive Option** — per bind, require the exact press order or allow any order
- Smart Conflict Resolution** — most specific combo wins (
Shift + ClickbeatsClick) - Edge Detection** — actions fire on press, held state tracked per combo
### Capture
- Multi-Key Capture** — press your whole combo; it records every key in order
- Auto-Finalize** — capture locks in 3 seconds after the last key, no confirm needed
- Cancel** — press
ESCmid-capture to discard - Live Feedback** — countdown timer and the running combo shown while recording
### Action List
- Live From Game** — actions read straight from the game's KeyMapping registry
- Search** — filter the full action list by name or id
- Categories** — actions carry their in-game category label
### Management
- Bind List** — every saved bind shown in one scrollable panel
- One-Click Remove** — red **X** on each row deletes that bind
- Persistence** — all binds auto-save to JSON on every change and on close
### User Interface
- ModMenu Integration** — entire GUI in-game, no manual config files
- Scrollable Panels** — action list and bind list scroll independently
- Order Toggle** — one button flips order sensitivity for the next bind
## Technical Highlights
### Performance
- Zero-Allocation Polling** — input state reuses collections each tick
- Screen Guard** — bind processing skips entirely while any screen is open
- Direct KeyMapping Drive** — no event spoofing; sets the real mapping state
### Architecture
- Input System**
InputManager— polls GLFW for 70+ keys and 8 mouse buttons each tickInputState— current/previous frame tracking for edge detection- Press-order tracking — held keys recorded in press order for order-sensitive binds
- Binding System**
BindTrigger— immutable combo, ordered or unordered, with match logicActionBinding— one action to many triggers, most-specific matchBindingManager— per-tick resolve and driveConflictResolver— specificity-based winner selection
- Action System**
ActionRegistry— built fromMinecraft.options.keyMappings, refreshed on GUI openActionDefinition— id, display name, category, target KeyMapping
- Trigger Mechanism**
KeyMapping.setDownheld wh