to get the player to start constantly moving right (endless runner).
Develop games in your browser. Powerful, performant & highly capable.
use a boolean variable.
on button press - set it to true
then add a condition to check the variable is true in place of the the is button down condition