# Mouse/Keyboard Action

{% hint style="info" %}
**Block Information**

Available in: Page Flow

Toolbox Category: Action - Event

Block Type: [Regular](/app-editor/page-flow/block-anatomy.md#regular-block)
{% endhint %}

Use the **`Mouse/Keyboard Action`** block to take an action when the user interacts with elements on the page using the mouse or keyboard.

<div align="left"><figure><img src="/files/vG5sjsRrO3v8IGZ3zdRQ" alt="" width="293"><figcaption><p>Mouse/Keyboard Action block</p></figcaption></figure></div>

The block consists of the following (from top to bottom):

* *Element*: [Selectable Input](/app-editor/page-flow/block-anatomy.md#selectable-input) to choose the element.
* *Event*: [Dropdown configuration setting](/app-editor/page-flow/block-anatomy.md#dropdown) that allows you to choose from three options:
  1. Clicked: When the selected element is clicked.
  2. Double-Clicked: When the selected element is double-clicked.
  3. Right-Clicked: When the selected element is right-clicked.
  4. Key Pressed: When a key is pressed with the focus is inside the selected element.
* *Tasks*: a [Flow Parameter](/app-editor/page-flow/block-anatomy.md#flow-parameters) where you connect blocks that specify what you want done when the event occurs. Use the [Action/Event Info](/app-editor/page-flow/toolbox-blocks/action-event-info.md) block to get more information about the event.

***

## Usage Example

The image below shows an example of the Mouse/Keyboard Action block where the [Show Information Popup](/app-editor/page-flow/toolbox-blocks/show-information-popup.md) block is used to show a message.

<div align="left"><figure><img src="/files/WRTb9iQZKk0uCk4iu8Ji" alt="" width="563"><figcaption><p>Example of Mouse/Keyboard Action block</p></figcaption></figure></div>


---

# 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://docs.zingy.ai/app-editor/page-flow/toolbox-blocks/mouse-keyboard-action.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.
