Description
When called, Keyboard.press()
functions as if a key were pressed and held on your keyboard. Useful when using modifier keys. To end the key press, use Keyboard.release() or Keyboard.releaseAll().
It is necessary to call Keyboard.begin() before using press()
.
Syntax
Keyboard.press(key)
Parameters
key
: the key to press. Allowed data types: char
.
Returns
Number of key presses sent. Data type: size_t
.