Presses and releases the specified key for the specified number of times.
- key (Keys)
- The key.
- scanCode (Int32)
- The hardware scan code for the key. Specify DefaultScanCode to use the default scan code for the specified virtual key.
- keyPressTime (Duration)
- The time between pressing and releasing the key.
- times (Int32)
- The number of times to press the key.
- setModifiers (Boolean)
- A value specifying whether to set the modifiers specified in the key.
