inputinput.key

Computer Keyboard Input

Simulate one computer keyboard input. LaiCai sends it through the current key mapping before it reaches the device.

Inputs

5
InputValue typeRequirementAccepted sources
KeykeyCodeComputer keyboard key captured by the editor. LaiCai sends it through the current key mapping before it reaches the device; do not enter Android keycodes.numberRequiredliteral
ModifiersmodifiersKeyboard modifier bitmask captured with the key, such as Shift, Ctrl, Alt, or Meta.numberOptionalliteral
TexttextOptional text carried by the captured key event, for example \r for Enter.stringOptionalliteral
PhasephaseOptional key phase. Empty means press and release; down sends only key down; up sends only key up.stringOptionalliteral
Press mspressMsDelay between key down and key up for a full key press. Applies only when Phase is empty.numberOptionalliteral

Outputs

3
Output pathValue typeCoordinate space
data.keyCodenumber
data.textstring
data.phasestring

Runtime support

DesktopSupported
Android AgentSupported