Skip to content

Key Up

Release keyboard key.

Interface Description

Interface Type

keyUp

Parameters

ParameterTypeRequiredDefaultDescription
deviceIdstring-Device ID
keystring-Key name

key Parameter Values

Same as keyDown, supports all standard keyboard keys.

Return Value

javascript
true  // Returns true on successful operation

Basic Usage

javascript
// Release Enter key
await apiInvoke('keyUp', {
    deviceId: 'P72578581E07',
    key: 'ENTER'
});

// Note: Must call keyDown first

Cooperation: try.catch@foxmail.com