It seems like you are trying to make a menu that will pass when you press "A". Here is some code for that.
'YOUR CODE HERE BEFORE BUTTON PRESS
REPEAT
BR=BUTTON(2)
UNTIL BR==#A
'MORE CODE, INGAME MAYBE
Now, what does it mean?
BR=BUTTON(2)- This makes BR your return value. 2 (if i remember) should make it so it won't repeat the press.
The until makes it pass when the button A is pressed
0そうだね プレイ済み