> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cuse.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Press Hotkey Combination

> Presses multiple keys simultaneously to perform a hotkey combination.



## OpenAPI

````yaml api-reference/openapi.json post /api/keyboard/hotkey
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: http://localhost:4242/{computer_name}
    description: Local development server
    variables:
      computer_name:
        default: your-computer-name
        description: Computer name
security: []
paths:
  /api/keyboard/hotkey:
    post:
      tags:
        - keyboard
      summary: Press Hotkey Combination
      description: Presses multiple keys simultaneously to perform a hotkey combination.
      operationId: pressHotkey
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/HotkeyRequest'
              description: Keys to press simultaneously
        required: true
      responses:
        '200':
          description: Successfully pressed the hotkey combination
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal server error
components:
  schemas:
    HotkeyRequest:
      properties:
        keys:
          items:
            type: string
          type: array
          minItems: 1
          title: Keys
          description: List of keys to press simultaneously
          example:
            - ctrl
            - c
        display_num:
          type: integer
          title: Display Num
          description: Display number to target
          default: 1
          example: 1
      type: object
      required:
        - keys
      title: HotkeyRequest
      example:
        display_num: 1
        keys:
          - ctrl
          - c
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````