send_key_down
send_key_down($key,$is_key); - this function is used to emulate pressing a given key on the keyboard at the event level, relative to the current window (input focus is passed to the current window when this function is called) (available from 4.6.37)
The function accepts parameters as input:
$key – the key to be pressed.
After testing, the function returns the result of its work to the script :
true – emulation was made
false – emulation was not successful