# 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](/kalipso5/developing/form/actions/actions-description/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](/kalipso5/developing/form/actions/actions-description/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](/kalipso5/developing/form/actions/actions-description/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](/kalipso5/developing/form/actions/actions-description/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](/kalipso5/developing/form/actions/actions-description/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](/kalipso5/developing/form/expressions/functions/functions-descriptions/keywords/keypressed.md) to know its code.
  {% endhint %}

#### Event available on the following operating systems

![](/files/-MGIiDGuNcrVFP-DbUma)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.sysdevmobile.com/kalipso5/developing/form/controls/events/key-pressed.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
