---
title: "Press one or more keys on the host computer"
method: POST
path: "/browsers/{id}/computer/press_key"
tags: ["Browser Computer Controls"]
---

# Press one or more keys on the host computer

`POST /browsers/{id}/computer/press_key`

## Path parameters

- `id` string, required

## Request body

- PressKeyRequest
  - `keys` string[], required — List of key symbols to press. Each item should be a key symbol supported by xdotool (see X11 keysym definitions). Examples include "Return", "Shift", "Ctrl", "Alt", "F5". Items in this list could also be combinations, e.g. "Ctrl+t" or "Ctrl+Shift+Tab".
  - `duration` integer — Duration to hold the keys down in milliseconds. If omitted or 0, keys are tapped.
  - `hold_keys` string[] — Optional modifier keys to hold during the key press sequence.

## Response `200`

Keys pressed successfully

## Other responses

- `400` — Bad Request – invalid input
- `404` — Resource not found
- `500` — Internal Server Error

---

[API](https://skmtc.net/kernel/apis/kernel-api.md) · [All operations](https://skmtc.net/kernel/apis/kernel-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kernel/kernel-api/versions/9e8ce9fcf5e1/schema)
