From the code the wait commands are stopping everything so no input can be received.
Means A is only read every 3 seconds
What are you trying to do?
I’ve attached code for the robot to go forward and if A is high to reverse a little and turn.
The default is go forward
Only the A High test is in the Forever loop.