VCS how to check if button is pressed

I’ve been trying to get my ball collector to work, but I cant seem to know how to check if a button is pressed. I tried


Does any1 know how to do this?

That looks correct. I would check the flow of your program to make sure that it’s actually checking this condition when you think it should be.