ModsFinder

Keyboard/Mouse Input Detection

by IncomeTaxAsessmentAct1997

Keyboard/Mouse Input Detection adds a command that reports when a player presses a key or mouse button, then runs a function in response.

FabricClient and serverMIT LicenseOpen source1.21.5 – 1.21.10

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

  1. Key press command

    The keydetection command runs a function when a player presses the configured key.

  2. Function trigger

    Each detected press executes a function, so the response can be written as ordinary datapack logic.

  3. Command syntax

    Usage follows the keydetection run pattern, which the author documents in the mod text.

Compatibility

Latest build for each game version and loader.

1.21.101.1.0
1.21.51.0.1
ReleaseBetaAlphaNot available

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

Questions

Does Keyboard/Mouse Input Detection need Fabric API?

No required dependency is listed for Fabric.

Does the mod have to run on the server?

Every player and the server need a copy of the mod.

Which game versions does the mod support?

Files are available for 1.21.5 and 1.21.10, with 1.1.0 for 1.21.10 as the latest file.

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

Official listing

Owner
IncomeTaxAsessmentAct1997
Published
2025-06-09
Updated on Modrinth
2026-01-07
Facts verified
2026-10-15

Tags