Code help for pressed command

You have to use the .pressing command instead of .pressed.

pressing returns whether the button is pressed or not.

pressed sets up a callback for a function to run if the button is pressed, which is very confusing and quite unhelpful.

VCS has terribly named these functions and does not have a helpful API.

Consider using RMS.