Method SendKeyDown
SendKeyDown(Key, ModifierKeys)
Presses a key.
public virtual bool SendKeyDown(Key keyCode, ModifierKeys modifiers = ModifierKeys.None)
Parameters
keyCode
KeyKey to operate on.
modifiers
ModifierKeysA 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, ModifierKeys) or the modifiers will not be released (Windows and macOS).