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