press_key
This function sends a fake key press (keydown event followed by a keyup event) to Minecraft using the given keycode. See Lookup Tables for a list of valid keycodes.
Arguments
key
: string
Return values
None
This function cannot be called during startup.