Key Pressed
What it does
Key Pressed changes a task when the local player presses the selected input. You can optionally require a second input as a combination.
Required item compatibility
This is a player-input event. Add it through an item that offers the Tasks panel; the selected input and task connection determine the behavior.
Setup
- Add Key Pressed and choose a task transition.
- Choose With A Key Code Of from the available selector.
- Optionally choose Combined with key code for a two-key input.
- Add effects to the destination state.
Settings
| Setting | What it means |
|---|---|
| With A Key Code Of | Primary input from the available key selector. |
| Combined with key code | Optional second input; leave it as None for one input. |
Tiny example
Pressing H changes Not Active → Active for Help Panel; Active opens an iframe, while another input resets the task.
Test and troubleshoot
- Test in normal play, not while typing in a text field or another overlay.
- Avoid inputs the browser or operating system reserves.
- If the combination never fires, verify both selected inputs and try a simple one-input version first.
