KeyDetect X is a powerful input detection system that allows you to capture player key presses and combinations directly in-game.
Detect keys CTRL, SHIFT, W, A, S, D, F, 1, 2, 3, 4, 5, 6, 7, 8, 9 and create fully customizable combos to trigger actions, commands, and advanced logic.
This plugin is not just about key detection — it introduces a flexible coordinate-based system that enables you to build interactive systems, mechanics, and even complete minigames.
Do you want to detect the mouse? Check CursorCs! https://builtbybit.com/resources/cursorcs.99323/
Features
- Detect individual keys and complex key combinations
- Create custom combos with unlimited possibilities
- Execute commands as player, OP, or console
- Condition-based execution using placeholders
- Built-in coordinate system for advanced mechanics
- Ideal for minigames, abilities, UI systems, and custom gameplay
Examples of what you can create
- Skill systems (e.g. Shift + F = ability)
- Movement-based mechanics (double-tap, directional combos) like CTRL + A or A + D + JUMP
- Custom GUIs controlled by movement keys
- Parkour systems or reaction-based minigames
- Combat abilities and spell casting systems
ALSO IM USING KEYDETECT ON THIS VIDEO:
00:00 to 00:29
https://www.youtube.com/watch?v=WH3nD5lgKE4
Fully configurable
Everything is handled through simple YAML configuration, allowing you to design complex behaviors without coding.
Code:
Shift+1:
action1:
permission: essentials.gamemode
command: gamemode creative %player%
action2:
permission: essentials.fly
command: fly %player%
conditions:
1:
first: "papi:player_x"
second: "1"
operation: '=='
W+Ctrl:
action1:
permission: essentials.sethome
command: sethome %player%
Shift+Shift:
action1:
command: say Double shift detected by %player%
A+D+Jump:
action1:
command: say Side combo and jump by %player%
conditions:
1:
first: "papi:player_health"
second: "10"
operation: '>'
1+Shift:
action1:
command: say Shift and 1 by %player%
# Example with as_op (executes as if player was op)
Ctrl+1:
action1:
as_op: true
command: gamemode creative %player%
# Example with as_console (executes from console)
Ctrl+2:
action1:
as_console: true
command: give %player% diamond 64
# Shift + F (sneak + swap hand key)
Shift+F:
action1:
as_console: true
command: say Shift+F detected by %player%
Have any question? Click me to join to the Discord!
Placeholders:
%keydetect_last%: Last key detected.%keydetect_cmenu%: Current player menu.%keydetect_menu%: Current menu coordinates in xX-yY-zZ format.%keydetect_z%: Current Z-axis coordinates only.Commands
Code:
/keydetectmenu
/keydetectmodifymenu <menu> <point> <x0y0z0> [nextMenu|"/command"] [player|op|console]
/keydetectreloadmenus
/keydetectreloadcombos
