The A button also acts as the ENTER key, so it's maybe a good idea for the program to wait for it to be released before accepting input. Try adding the two WHILE ~ WEND statements shown in this screenshot.