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