A numeric virtual key code
true for key down, false for key up
Optionalmods: string[] | null
An array of modifier names (e.g. ["cmd", "shift"]), as accepted by hs.eventtap.keyStroke(). Omit to keep the modifiers that are currently held.
An HSEventTapEvent
Create a keyboard event using a raw key code
If
modsis given, the event carries exactly those modifiers, whatever modifier keys are held when it's created.