> For the complete documentation index, see [llms.txt](https://doc.sysdevmobile.com/kalipso/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.sysdevmobile.com/kalipso/6.0/documentation/controls/events/key-pressed.md).

# Key Pressed

This Event doesn’t exist by default. Still, you can define to capture the pressing of a specific key or any key (Key Pressed). If you choose to capture a specific key, the Event will be triggered when you press the defined key or by Action:\
\
\- [Send Keys](/kalipso/6.0/documentation/actions/group-others/send-keys.md)\
\
If you choose to capture any key, the Event will be triggered when you press any key or by Action:\
\
\- [Send Keys](/kalipso/6.0/documentation/actions/group-others/send-keys.md)

{% hint style="info" %}
Pressing a key has 2 moments: pressing down the key and releasing the key. This Event is triggered on when pressing the specified key.
{% endhint %}

{% hint style="info" %}
Although Action ‘[Send Keys](/kalipso/6.0/documentation/actions/group-others/send-keys.md)’ can emulate a keyboard Event, if your intention is to simply execute the Actions of that Event, you should use Action ‘[Execute Event](/kalipso/6.0/documentation/actions/group-controls/execute-event.md)’. Notice that the ‘Send Keys’ Action sends a message to the windows queue and you don’t control the target of the message. When using the ‘[Execute Event](/kalipso/6.0/documentation/actions/group-controls/execute-event.md)’ no message is queued, Kalipso executes directly the Actions defined on the Event, without triggering the Event.
{% endhint %}

{% hint style="info" %}

* If you choose to capture any key, you can use Keyword [KEYPRESSED](/kalipso/6.0/documentation/expressions/functions/keywords/keypressed.md) to know its code.
  {% endhint %}

#### Event available on the following operating systems

<figure><img src="https://1102213384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM6Wz3tBjSWbCweZ8NltT%2Fuploads%2FruABjDF2Z7iy255xGivq%2F01_Supported_OS.png?alt=media&amp;token=166f7395-72c9-406f-91f1-e41412516cba" alt="OS Supported: Android, iOS, Win, Win32"><figcaption></figcaption></figure>
