---
title: "Simulates a short press using a key code."
method: GET
path: "/uiDevice/pressKeyCode"
---

# Simulates a short press using a key code.

`GET /uiDevice/pressKeyCode`

Simulates a short press using a key code.

## Query parameters

- `keyCode` integer, required
- `metaState` integer

## Response `200`

OK

- StatusResponse
  - `status` 'OK' | 'ERROR' | 'UNKNOWKN', required
  - `statusCode` integer
  - `errorMessage` string

## Other responses

- `default` — Operation was not successful

---

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