Send a key down and key up event with optional modifier keys.
A 50 ms pause is inserted between the key-down and key-up events to improve
compatibility with applications that miss very fast synthetic keystrokes.
Parameters
mods: string[]
An array of modifier names (e.g. ["cmd", "shift"])
key: string
A key name or single character (e.g. "a", "space", "return")
Send a key down and key up event with optional modifier keys. A 50 ms pause is inserted between the key-down and key-up events to improve compatibility with applications that miss very fast synthetic keystrokes.