# On Key Press

## Overview

![The On Key Press Node.](https://879976444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MIspkFTPkuGkv4UgQGs-41739140%2Fuploads%2Fgit-blob-423d6c530c487db8d14c1b9ce92c9649f6eb2269%2Fnode-on-key-press.png?alt=media)

**On Key Press** is used for triggering logic using key presses on a computer keyboard.

## Attributes

### 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* for. |

## 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 firing of the **Event** (`true`) or the initial time it is fired (`false`). If the `Repeat Enabled` **Attribute** is enabled, the output will always be `false` because the **Event** is only fired on the initial press. |

## See Also

* [**Events**](https://docs.incari.com/incari-studio/2.0/toolbox/events)
* [**Keyboard**](https://docs.incari.com/incari-studio/2.0/toolbox/events/keyboard)
* [**On Key Release**](https://docs.incari.com/incari-studio/2.0/toolbox/events/keyboard/on-key-release)
