> For the complete documentation index, see [llms.txt](https://docs.incari.com/incari-studio/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.incari.com/incari-studio/2022.2/toolbox/events/keyboard/on-key-press.md).

# On Key Press

## Overview

![The On Key Press Node.](/files/iC5b74NvhvMQIjHWpVeo)

**On Key Press** is an **Event Listener** **Node** used for executing a **Logic Branch** when a key is pressed on a computer keyboard.

[**Scope**](/incari-studio/2022.2/toolbox/overview.md#scopes): **Scene**, **Prefab**.

## Attributes

![The On Key Press Node Attributes.](/files/CjzfDDLqOI417sJGuUoe)

### Miscellaneous

| Attribute        | Type     | Description                                                                                           |
| ---------------- | -------- | ----------------------------------------------------------------------------------------------------- |
| `Repeat Enabled` | **Bool** | Whether or not the **Event** is triggered while the key is held down, or just when initially clicked. |

### Event

| Attribute | Type          | Description                             |
| --------- | ------------- | --------------------------------------- |
| `Key`     | **Drop-down** | The key that **Incari** will listen to. |

## Outputs

| Output             | Type      | Description                                                                                                                                                                                                                                                                        |
| ------------------ | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| *Pulse Output* (►) | **Pulse** | Moves onto the next part of the **Logic** once the assigned key is pressed (or held).                                                                                                                                                                                              |
| `Is Alt`           | **Bool**  | Whether or not the **Alt** key was also pressed in combination with the assigned key.                                                                                                                                                                                              |
| `Is Ctrl`          | **Bool**  | Whether or not the **Ctrl** key was also pressed in combination with the assigned key.                                                                                                                                                                                             |
| `Is Shift`         | **Bool**  | Whether or not the **Shift** key was also pressed in combination with the assigned key.                                                                                                                                                                                            |
| `Is Repeated`      | **Bool**  | Indicates whether this is a repeated/subsequent execution of the **Event** (`true`) or the initial time it is executed (`false`). If the `Repeat Enabled` **Attribute** is enabled, the output will always be `false` because the **Event** is only executed on the initial press. |

## See Also

* [**Events**](/incari-studio/2022.2/toolbox/events.md)
* [**Keyboard**](/incari-studio/2022.2/toolbox/events/keyboard.md)
* [**On Key Release**](/incari-studio/2022.2/toolbox/events/keyboard/on-key-release.md)
