The Arcade needs a connection to a computer or other host device with a USB cable in order to emulate keyboard actions. This function doesn’t work in the simulator.
media Key
Emulate a press of a media key on a keyboard.
Media keys are special keys found on many keyboards to do special actions with applications. Some examples are to turn sound volume up or open a web search window.
Parameters
- key: a keyboard media key. The key choices are in the key list of the block or part or the
KeyboardMediaKey
enumeration. - event: the key press event to simulate. These are:
press
: simulate a media key press down and then release updown
: simulate a media key press downup
: simulate a media key release up
Example
Emulate typing a command to open this page in the web browser.