Car control by app remote

Hi koders, I am making an app to control an arduino car with app remote.
I want the car to go forward as long as a certain button is kept clicked and to stop the car when the button is released, the arduino code is done and “S” indicates “stop” and “F” indicates “forward”. But there is no block which can be used as event as long as the button is clicked… So how can I do it? Please help.

Did u mean this

Yes, but how to set the timer of? I mean how will I know if the user has lifted from the button?