---
title: "down(key) | Grafana k6 documentation"
description: "Dispatches a `keydown` event. This is useful for simulating holding down a key."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# down(key)

Dispatches a `keydown` event. This is useful for simulating holding down a key.

Expand table

| Parameter | Type   | Description                                |
|-----------|--------|--------------------------------------------|
| key       | string | Name of the key to press, such as `Enter`. |

### Returns

Expand table

| Type            | Description                                                           |
|-----------------|-----------------------------------------------------------------------|
| `Promise<void>` | A Promise that fulfills when the `keydown` event has been dispatched. |
