Method SendKeyDown
SendKeyDown(Key, RawModifierKeys)
Presses a key.
bool SendKeyDown(Key keyCode, RawModifierKeys modifiers = RawModifierKeys.None)Parameters
- keyCodeKey
- Key to operate on. 
- modifiersRawModifierKeys
- A combination of key modifier flags to be pressed with the given keycode. 
Returns
Remarks
If you are using modifiers then it needs to be paired with an identical SendKeyUp(Key, RawModifierKeys) or the modifiers will not be released (Windows and macOS).