The keyboard object doesn't allow this action apparently.
Develop games in your browser. Powerful, performant & highly capable.
You can't simulate a keyboard event. But you can run the same code that runs when the key is pressed.
Keyboard On Space pressed : Call function PlayerJump Touch on Button touched : Call function PlayerJump