Toggle Key Fix
by AdyTech99
Toggle Key Fix corrects a Minecraft bug where toggled sprint and sneak states were cleared each time a container or menu screen was opened.
What it does
Under vanilla behavior, a toggled sprint or sneak turned off after a player closed a chest, chat window or menu, even when the toggle was meant to persist. The mod keeps those toggle states across screen changes, so the sprint or sneak setting stays as the player left it. It is a Fabric mod for the 1.21.11 game version, with the Fabric build 21.11.0 published on 2026-01-13, and it is client-side only, so servers do not need it. The code is open source under the GNU Lesser General Public License v3.0 only.
Key features
Sprint toggle persists
A toggled sprint stays active after a chest, chat or menu screen closes, instead of switching off.
Sneak toggle persists
A toggled sneak stays active across the same screen changes, matching the setting the player chose.
Fix for MC-301281
The change targets the vanilla report MC-301281, which Mojang had marked as working as intended.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
How it compares
Toggle and Hold Sneak/Sprint is also client-side only and open source, released under the CC0 1.0 Universal license, and it targets 1.21.3 – 1.21.4. Hold to Sprint covers 1.21.11 with the MIT License and is open source too. Auto_Sprint is client-side only and for 1.21.11 as well, but it is not open source and is under All rights reserved.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Toggle Key Fix | Fabric | 1.21.11 | Client-side only | 2026-01-13 |
| Toggle and Hold Sneak/Sprint | Fabric | 1.21.3 – 1.21.4 | Client-side only | 2024-12-19 |
| Hold to Sprint | Fabric | 1.21.11 | Client-side only | 2026-03-26 |
| Auto_Sprint | Fabric | 1.21.11 | Client-side only | 2026-08-03 |
Questions
Does Toggle Key Fix need to be installed on the server?
In the catalog
Toggle Key Fix is one of 29,952 Game mechanics mods on ModsFinder, and one of 19,630 Game mechanics mods for Fabric. 19,862 mods support Minecraft 1.21.11.
More from AdyTech99
Similar mods
What the author says
This mod fixes MC-301281, which caused sprint and sneak toggle states to be reset whenever a GUI was opened. This meant that if you have sprint or sneak toggled on, and you open a chest/chat/menu, your sprint and sneak would be toggled off after closing the GUI.
Official listing
- Modrinth page
- modrinth.com/mod/toggle-key-fix
- Owner
- AdyTech99
- Published
- 2026-01-13
- Updated on Modrinth
- 2026-01-13
- Facts verified
- 2026-10-15