ContextKeys
by TryFree
ContextKeys lets one key or mouse button trigger different actions depending on what the player is doing, holding or looking at, and it is a Fabric client mod.
What it does
Each Smart Key holds an ordered list of rules. Rules are checked from top to bottom, and the first enabled rule whose conditions all match runs its action, so only one action fires per press. Rules can be reordered with the up and down controls, and a rule can be disabled without being deleted. A rule with no conditions always matches, which makes it useful as a general fallback at the bottom of the list.
The mod works with the standard actions of vanilla Minecraft and of other installed Fabric mods. It discovers the normal key actions those mods register, so the action list covers more than the base game. Before the mod is opened for the first time, existing bindings stay as they are. New bindings start unassigned, and ContextKeys takes over a control only when a Smart Key is set up for it.
Conditions are built from what the game observes: the held item, the targeted block or entity, riding state, sneaking state and whether a screen is open. The Use Current Context option creates conditions from the present situation, and suggested facts can be added with one click. Conditions can also be typed manually. Within a single rule, all conditions must match. The mod is client-side only and is published for Fabric as a beta build, 0.1.0+mc26.2-fabric for 26.2, under the MIT License.
Key features
Context-based Smart Keys
One key or button can run different actions based on the situation the player is in.
Ordered rule list
Rules are checked top to bottom, and only the first matching enabled rule runs its action.
Live context conditions
Held item, targeted block or entity, riding state, sneaking state and open screens can each be a condition.
Action discovery
Normal key actions from vanilla and installed Fabric mods can be searched and assigned to a Smart Key.
Gallery
Compatibility
Latest build for each game version and loader.
26.x4 of 4 versions with builds
1.21.x12 of 12 versions with builds
Only full game releases are shown. This mod publishes no snapshot builds.
How it compares
Secondary Key is a Fabric client mod for 26.2 – 26.3 with the MIT License, and it is not open source. Fast Click is open source under the MIT License and covers 1.21.11 – 26.2 on Fabric. Hotbar Inventory Transfer is open source under the CC0 1.0 Universal license and covers 1.21 – 26.2. ContextKeys is not open source and is limited to 26.2 among its file versions.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| ContextKeys | Fabric | 1.21 – 26.2 | Client-side only | 2026-08-28 |
| Secondary Key | Fabric | 26.2 – 26.3 | Client-side only | 2026-09-15 |
| Fast Click | Fabric | 1.21.11 – 26.2 | Client-side only | 2026-07-24 |
| Hotbar Inventory Transfer | Fabric | 1.21 – 26.2 | Client-side only | 2026-07-18 |
Questions
Does ContextKeys need Fabric API?
Does ContextKeys have to be installed on a server?
Which game versions have files for ContextKeys?
In the catalog
ContextKeys is one of 8,016 Management mods on ModsFinder, and one of 5,930 Management mods for Fabric. 13,894 mods support Minecraft 26.2.
More from TryFree
Similar mods
What the author says
ContextKeys lets one keyboard key or mouse button perform different actions depending on what you are doing in Minecraft. It works with standard actions from Minecraft and installed Fabric mods. The binding starts unassigned so ContextKeys does not take over an existing control.
Official listing
- Modrinth page
- modrinth.com/mod/contextkeys
- Owner
- TryFree
- Published
- 2026-08-28
- Updated on Modrinth
- 2026-08-28
- Facts verified
- 2026-10-15
