Method SendKeyDown
SendKeyDown(Key, RawModifierKeys)
Presses a key.
public bool SendKeyDown(Key keyCode, RawModifierKeys modifiers = RawModifierKeys.None)
Parameters
keyCode
KeyKey to operate on.
modifiers
RawModifierKeysA 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).