I am currently creating a game where a hamster has to find all the sweets in a labyrinth. the problem is that if you press two keys at the same time (i.e. up and right) the hamster can go through the walls. how can i stop that ? (you cant go through a wall if you stand right in front of it)
PLEASE HELP ASAP

