I'm working on a Snake like game, and I wanna direct the snake to move as I press the keys...
When the game start, the snake moves to the right.
The condition looks a bit like this:
i want to add something, so that whenerver i press lets say 'a', it'll change to the function of movedown...
how can i do that?