Whats the best way to run code when a button is held down and stop when released


#1

whats the best way to run code when a button is held down and stop when released

example is A held

do something

else

stop it or do something else


#2

tried adding IsControlJustReleased but it didnt seem to work