---
title: Press keys
description: "Send keyboard keys and shortcuts to the page: Enter to submit, Escape to close a modal, Tab to move focus, or combinations like Ctrl+A."
lastUpdated: "2026-09-23"
---

> **For AI agents:** the complete documentation index is at [llms.txt](/llms.txt). Append `.md` to any page URL for its markdown version.

Send one or more keyboard keys to the page: Enter to submit a form, Escape to close a modal, Tab to move focus, or shortcuts like Ctrl+A. In the builder you record the keys in a small keyboard modal: press the keys you want to send, and they are stored in order.

## Parameters

| Parameter | Required | Description |
| ----------- | ---------- | ------------- |
| Keys | Yes | The keys to press, recorded in the keyboard modal and sent in order. |
| Ignore error on this step | No | The run continues with the next step if this one fails. Default: off. |

This step does not target an element: the keys go to whatever currently has focus. Use [Click](/tests/actions/web/click) or [Fill input](/tests/actions/web/input) first to set the focus.

## Results and metrics

- **Timing**: start, end, and duration (in seconds) recorded in the step result.
- **Status**: success, warning, or failed, with the error message on failure.
- **Screenshot**: captured after the keys are sent.

## What's next?

<Columns cols={2}>
  <Card title="Fill input" icon="keyboard" href="/tests/actions/web/input">

    Type text into a field before pressing Enter

</Card>
  <Card title="Verify element" icon="eye" href="/tests/actions/web/verifyelement">

    Check what the key press changed on the page

</Card>
</Columns>
