How would I access button states in a for loop. I want to check which button has been pressed and then based on this select the screen I want to be displayed. I know I can acces