Keyboard/Mouse Input Detection
Keyboard/Mouse Input Detection adds a command that reports when a player presses a key or mouse button, then runs a function in response.
What it does
A new command, keydetection, lets a datapack or server function fire when a player presses a chosen key. The command is registered by the mod, so it is available once the mod is installed on a Fabric setup, and it works on both client and server. The mod is published for Fabric only, in two release versions, 1.21.5 and 1.21.10, under the MIT License, and its source code is public.
Key features
Key press command
The keydetection command runs a function when a player presses the configured key.
Function trigger
Each detected press executes a function, so the response can be written as ordinary datapack logic.
Command syntax
Usage follows the keydetection run pattern, which the author documents in the mod text.
Gallery
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Questions
Does Keyboard/Mouse Input Detection need Fabric API?
Does the mod have to run on the server?
Which game versions does the mod support?
In the catalog
Keyboard/Mouse Input Detection is one of 36,990 Utility mods on ModsFinder, and one of 25,772 Utility mods for Fabric. 15,569 mods support Minecraft 1.21.10.
Similar mods
What the author says
The mod adds a new command with the syntax /keydetection run now Credit for programming the 1.21.10 version of the mod goes to Thanks for updating this mod because I kinda forgot about it.
Official listing
- Modrinth page
- modrinth.com/mod/key-activation-detection
- Owner
- IncomeTaxAsessmentAct1997
- Published
- 2025-06-09
- Updated on Modrinth
- 2026-01-07
- Facts verified
- 2026-10-15
