A batch of keyboard actions executed atomically on a single native thread.

interface KeySequence {
    Hold: (combo: string) => KeySequence;
    Release: (combo: string) => KeySequence;
    Press: (combo: string) => KeySequence;
    Sleep: (ms: number) => KeySequence;
    Type: (text: string) => KeySequence;
    Send: () => void;
}

Properties

Hold: (combo: string) => KeySequence

Queues a key-down for the given combo without releasing it.

Release: (combo: string) => KeySequence

Queues a key-up for a previously held combo.

Press: (combo: string) => KeySequence

Queues a full press+release for the given combo.

Sleep: (ms: number) => KeySequence

Queues a native-thread sleep (guaranteed timing, not JS event-loop).

Type: (text: string) => KeySequence

Queues typing text character-by-character.

Send: () => void

Executes all queued steps sequentially and clears the batch.