key [up/down/stroke] [<key>(,…)] (<stroke duration>) (<key separation delay>)
Executes key actions in windows as if they were pressed on a keyboard.
- The key action to perform. Valid actions are “up”, “down”, and “stroke”.
- The key(s) to be pressed down. Multiple keys can be provided, separated by a comma. For a list of valid key names, visit https://github.com/GregsStack/InputSimulatorStandard/blob/master/src/GregsStack.InputSimulatorStandard/Native/VirtualKeyCode.cs.
- The duration in seconds that the key action should be performed for. Decimal values are allowed. The default value is 0.05 (50ms). This parameter only applies to the “stroke” action.
- The duration in seconds of delay that should be inserted in between every key down and key up event to space them out in time. The default value is 0.002 (2ms). This parameter only applies to the “stroke” action.