Hello I'm new to programming and I'm having a hard time in giving giving an assigned key to directions.
import random
move = [
        "Left!",
        "Right!",
        "Forward!",
        "Backward!",
        "Accelerate!",
        "Stop!",
]
direction = random.choice(move)
print(direction)
drive = input("[keypad]> ")
What I want to do is for example if the chosen random word is "Left!" then if I click "a" for left then the program would recognize it as correct answer and feed another direction to me.
Any suggestion to my problem would greatly help me. Thank you!
 
     
    