is there a way i can make a function stop? for example if wanted a function to stop running when I let go of shift?