With this code you know already when a touch begins and a touch ends. If you want to continuously do something while the touch is pressed, you can store the state of the touch in a variable, and check that variable in
_process() every frame, or use a Tween.
Also note that there can be more than one touch, you don't know how many there can be (but they have an
indexin the event so you can differenciate them).