Keyboard Detector

Quick rating

Keyboard Detector

No reviews yet

A Minecraft Fabric mod for versions 1.21.4-1.21.8. Detect all keypresses to enable more possibilities for key events.

QoL & Tweaks
Mod Loaders
Fabric
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Required
Server Required

About

Project Details

Type
Mod
License
Apache License 2.0
Latest Version
keyboarddetector-1.2.2.jar
Authors

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID
Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

Keyboard Detector Command Guide

Advanced keyboard event detection in Minecraft for all keys!

Command Overview

Command Functionality Key Parameters
iskeydown Single key press detection <KeyAscii>, <keepStatic>
matchgroup Multi-key combination detection <KeyAsciiList>
iskeytapped Instant Multi-key combination detection <KeyAsciiList>
flush Reset key states for subcommand iskeydown None

1. Single Key Detection: /keyboarddetector iskeydown

Functionality

Detects real-time press state of a specific keyboard key.

Command Syntax

/keyboarddetector iskeydown <PlayerID> <KeyAscii>
Parameter Description Example Values
<PlayerID> Target player selector @p, @a[limit=1], @e[type=player,limit=1]
<KeyAscii> ASCII code of the 11key to detect 49
<keepStatic> Persistent state mode (true/false) true, false

Usage Examples

Standard mode:

/keyboarddetector iskeydown @p 49 false

Detects long-press of key '1'.

Persistent mode:

/keyboarddetector iskeydown @p 49 true

If target player have pressed the '1' key, the command block will return true and activate redstone signal constantly (Until /keyboarddetector flush is executed).

Command Block Behavior

Mode Behavior
Standard Mode (keepStatic=false) • Activates signal when all keys are pressed simultaneously
• Deactivates immediately when any key is released
Persistent Mode (keepStatic=true) • Locks signal on first successful detection.
• Maintains activation after keys are released.
• Requires manual flush to reset

2. Key Combination Detection: /keyboarddetector matchgroup

Functionality

Detects simultaneous pressing of multiple keys. (independent key processing)

Command Syntax

/keyboarddetector matchgroup <PlayerID> <KeyAsciiList> <keepStatic>

Parameters

Parameter Description Example Values
<PlayerID> Target player selector @p, @a[limit=1], @e[type=player,limit=1]
<KeyAscii> Comma-separated ASCII codes 49,50,51

Usage Examples

/keyboarddetector matchgroup @p 49,50,51

` Detects simultaneous press of keys '1', '2', '3'.

Command Block Behavior

  • In repeating command blocks:
    • 🔴 Key pressed: Returns true and activates redstone signal
    • ⚪ Key released: Returns false and deactivates redstone signal

3.Instant Key Combination Detection: /keyboarddetector iskeytapped

Functionality

Detect solely the instant when the key is pressed for multiple keys. (independent key processing).

Command Syntax

/keyboarddetector iskeytapped <PlayerID> <KeyAsciiList> <keepStatic>

Parameters

Parameter Description Example Values
<PlayerID> Target player selector @p, @a[limit=1], @e[type=player,limit=1]
<KeyAscii> Comma-separated ASCII codes 49,50,51

Usage Examples

/keyboarddetector iskeytapped @p 49,50,51

Detects solely the instant when the key '1', '2', '3' are pressed.

Command Block Behavior

  • In repeating command blocks:
    • 🔴 Key pressed: Returns true and activates redstone signal solely the instant when the key is pressed.
    • ⚪ Key hold: Returns false and deactivates redstone signal. (Different from /keyboarddetector matchgroup)
    • ⚪ Key released: Returns false and deactivates redstone signal

4. State Reset Command: /keyboarddetector flush

Functionality

Clears persistent key states created by iskeydown with keepStatic=true

Usage Scenario

  1. Persistent mode activated:
/keyboarddetector iskeydown @p 49 true
  1. After keys are pressed, signal stays active

  2. Reset detection state (must with conditional statement):

/keyboarddetector flush

Effects

♻️ Resets all detection states

🚦 Requires new key combination press to reactivate

Attention

❗ When more than 1 command blocks are exetuting /keyboarddetector matchgroup, make sure all <AsciiList> must not contain any duplicate values. Otherwise, only one of the key events can be triggered.

❗ Do not use /keyboarddetector flush without conditional statement. Otherwise, all subcommands for decection won't be available.

ASCII Key Reference Table

Key ASCII Code Key ASCII Code
Numbers Letters
0 48 A 65
1 49 B 66
2 50 C 67
3 51 D 68
4 52 E 69
5 53 F 70
6 54 G 71
7 55 H 72
8 56 I 73
9 57 J 74
K 75
L 76
M 77
N 78
O 79
P 80
Q 81
R 82
S 83
T 84
U 85
V 86
W 87
X 88
Y 89
Z 90
Functions Special
F1 112 Space 32
F2 113 Enter 13
F3 114 Esc 27
F4 115 Tab 9
F5 116 Caps Lock 20
F6 117 Shift 16
F7 118 Ctrl 17
F8 119 Alt 18
F9 120 Backspace 8
F10 121 Delete 46
F11 122 Insert 45
F12 123 Home 36
End 35
Page Up 33
Page Down 34
Arrow Up 38
Arrow Down 40
Arrow Left 37
Arrow Right 39

Notes:

  • Lowercase letters: a=97, b=98 … z=122
  • Numeric keypad: 0=96, 1=97 … 9=105
  • Case sensitive (A=65 vs a=97)
  • Full reference: ASCII Table

Keyboard Detector Command Guide

Advanced keyboard event detection in Minecraft for all keys!

Command Overview

Command Functionality Key Parameters
iskeydown Single key press detection <KeyAscii>, <keepStatic>
matchgroup Multi-key combination detection <KeyAsciiList>
iskeytapped Instant Multi-key combination detection <KeyAsciiList>
flush Reset key states for subcommand iskeydown None

1. Single Key Detection: /keyboarddetector iskeydown

Functionality

Detects real-time press state of a specific keyboard key.

Command Syntax

/keyboarddetector iskeydown <PlayerID> <KeyAscii>
Parameter Description Example Values
<PlayerID> Target player selector @p, @a[limit=1], @e[type=player,limit=1]
<KeyAscii> ASCII code of the key to detect 49
<keepStatic> Persistent state mode (true/false) true, false

Usage Examples

Standard mode:

/keyboarddetector iskeydown @p 49 false

Detects long-press of key '1'.

Persistent mode:

/keyboarddetector iskeydown @p 49 true

If target player have pressed the '1' key, the command block will return true and activate redstone signal constantly (Until /keyboarddetector flush is executed).

Command Block Behavior

Mode Behavior
Standard Mode (keepStatic=false) • Activates signal when all keys are pressed simultaneously
• Deactivates immediately when any key is released
Persistent Mode (keepStatic=true) • Locks signal on first successful detection.
• Maintains activation after keys are released.
• Requires manual flush to reset

2. Key Combination Detection: /keyboarddetector matchgroup

Functionality

Detects simultaneous pressing of multiple keys. (independent key processing)

Command Syntax

/keyboarddetector matchgroup <PlayerID> <KeyAsciiList> <keepStatic>

Parameters

Parameter Description Example Values
<PlayerID> Target player selector @p, @a[limit=1], @e[type=player,limit=1]
<KeyAscii> Comma-separated ASCII codes 49,50,51

Usage Examples

/keyboarddetector matchgroup @p 49,50,51

Detects simultaneous press of keys '1', '2', '3'.

Command Block Behavior

  • In repeating command blocks:
    • 🔴 Key pressed: Returns true and activates redstone signal
    • ⚪ Key released: Returns false and deactivates redstone signal

3.Instant Key Combination Detection: /keyboarddetector iskeytapped

Functionality

Detect solely the instant when the key is pressed for multiple keys. (independent key processing).

Command Syntax

/keyboarddetector iskeytapped <PlayerID> <KeyAsciiList> <keepStatic>

Parameters

Parameter Description Example Values
<PlayerID> Target player selector @p, @a[limit=1], @e[type=player,limit=1]
<KeyAscii> Comma-separated ASCII codes 49,50,51

Usage Examples

/keyboarddetector iskeytapped @p 49,50,51

Detects solely the instant when the key '1', '2', '3' are pressed.

Command Block Behavior

  • In repeating command blocks:
    • 🔴 Key pressed: Returns true and activates redstone signal solely the instant when the key is pressed.
    • ⚪ Key hold: Returns false and deactivates redstone signal. (Different from /keyboarddetector matchgroup)
    • ⚪ Key released: Returns false and deactivates redstone signal

4. State Reset Command: /keyboarddetector flush

Functionality

Clears persistent key states created by iskeydown with keepStatic=true

Usage Scenario

  1. Persistent mode activated:
/keyboarddetector iskeydown @p 49 true
  1. After keys are pressed, signal stays active

  2. Reset detection state (must with conditional statement):

/keyboarddetector flush

Effects

♻️ Resets all detection states

🚦 Requires new key combination press to reactivate

Attention

❗ When more than 1 command blocks are exetuting /keyboarddetector matchgroup, make sure all <AsciiList> must not contain any duplicate values. Otherwise, only one of the key events can be triggered.

❗ Do not use /keyboarddetector flush without conditional statement. Otherwise, all subcommands for decection won't be available.

ASCII Key Reference Table

Key ASCII Code Key ASCII Code
Numbers Letters
0 48 A 65
1 49 B 66
2 50 C 67
3 51 D 68
4 52 E 69
5 53 F 70
6 54 G 71
7 55 H 72
8 56 I 73
9 57 J 74
K 75
L 76
M 77
N 78
O 79
P 80
Q 81
R 82
S 83
T 84
U 85
V 86
W 87
X 88
Y 89
Z 90
Functions Special
F1 112 Space 32
F2 113 Enter 13
F3 114 Esc 27
F4 115 Tab 9
F5 116 Caps Lock 20
F6 117 Shift 16
F7 118 Ctrl 17
F8 119 Alt 18
F9 120 Backspace 8
F10 121 Delete 46
F11 122 Insert 45
F12 123 Home 36
End 35
Page Up 33
Page Down 34
Arrow Up 38
Arrow Down 40
Arrow Left 37
Arrow Right 39

Notes:

  • Lowercase letters: a=97, b=98 ... z=122
  • Numeric keypad: 0=96, 1=97 ... 9=105
  • Case sensitive (A=65 vs a=97)
  • Full reference: ASCII Table

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Total Downloads
CurseForge
<1,000
Modrinth
<1,000
Last Updated
CurseForge
Created
CurseForge
Modrinth
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works