Skip to content

Toggle Key Fix

This mod fixes MC-301281, which was erroneously marked as 'works as intended' by Mojang, and caused toggle sprint and sneak to be reset upon opening a GUI.

Fabric
Loaders
Fabric
Downloads on Modrinth
6.6K
Followers on Modrinth
1
version
1
Updated
January 13, 2026Jan 13
Published
in 2026

At a glance

Runs on Fabric
For Minecraft 1.21.11
Client only — no need to install it on the server
Latest version — 21.11.0 from January 13, 2026
License LGPL-3.0-only — free
Where it's needed
In gamerequiredOn servernot needed

Install in the game only; not needed on the server

Game versions1.21.11

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.

This bug was caused by Mojang's fix for MC-300695 only accounting for keyboard keys, not mouse buttons. The game would incorrectly reset toggle states for any keybind assigned to a mouse button when opening screens, even though mouse buttons don't have the same key-release behavior that caused the original issue.

FAQ

How to install Toggle Key Fix?

Install Fabric for your Minecraft version, download Toggle Key Fix for the same version and loader, put the file into the mods folder and launch the game with the loader profile.

Which Minecraft versions does Toggle Key Fix support?

Toggle Key Fix has builds for Minecraft 1.21.11.

Is Toggle Key Fix needed on the server?

Client only — no need to install it on the server

License and source
GNU Lesser General Public License v3.0 onlyfree to use and share; changes to the mod itself must be published under the same license
Original — Modrinth↗Files unchanged, verified with SHA-512Is this your mod? For rights holders

The site uses cookies: the necessary ones for sign-in and the theme, plus the Yandex Metrica and LiveInternet visit counters — they show us how the site is used. We have no advertising cookies. More