When you use an ATmega32U4 based Arduino such as the Leonardo or Micro,
then the Keyboard.print() function can help us send text.
But when we want to send special keys, like
KEY_DELETE
KEY_ESC
KEY_F10
which functions can be used?
For example,
can these special keys be sent only using the Keyboard.press() function, followed by the Keyboard.releaseAll() function,
or there are other functions that can be used too?
(which don't require a Keyboard.releaseAll() call after them)
So I will use Keyboard.write() in that case, since it's shorter - just 1 command.
Would it be correct to deduce from this that Keyboard.write() can only send 1 key,
and if someone needs a key combination then he must use Keyboard.press() + Keyboard.release()?
(or is there some way to send a combination of more than 1 key, using Keyboard.write()?)
There is a version of .write() that sends multiple keys but it calls the single-key .write() for each key so each is released before the next is pressed. To send a key combination, like Ctrl-Shift-Enter you need: