ModsFinder
TK

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.

FabricClient-side onlyGNU Lesser General Public License v3.0 onlyOpen source1.21.11

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

  1. Sprint toggle persists

    A toggled sprint stays active after a chest, chat or menu screen closes, instead of switching off.

  2. Sneak toggle persists

    A toggled sneak stays active across the same screen changes, matching the setting the player chose.

  3. 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.

1.21.1121.11.0
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

How it compares

Full comparison

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.

ModLoadersGame versionsEnvironmentUpdated
Toggle Key FixFabric1.21.11Client-side only2026-01-13
Toggle and Hold Sneak/SprintFabric1.21.3 – 1.21.4Client-side only2024-12-19
Hold to SprintFabric1.21.11Client-side only2026-03-26
Auto_SprintFabric1.21.11Client-side only2026-08-03

Questions

Does Toggle Key Fix need to be installed on the server?

No. The mod is client-side only, so only the player's client needs it.

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

All projects

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.
AdyTech99, on the Modrinth page

Official listing

Owner
AdyTech99
Published
2026-01-13
Updated on Modrinth
2026-01-13
Facts verified
2026-10-15

Tags