type

Emulate typing text characters on a keyboard.

keyboard.type("")

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.

Parameters

  • text: a string of text characters to send as simulated keystrokes.

Example

Emulate typing a command to open this page in the web browser.

keyboard.mediaKey(KeyboardMediaKey.WebHome, KeyboardKeyEvent.Press)
keyboard.type("https://arcade.makecode.com/reference/keyboard/type")

See also

key, media key, function key

keyboard