example-1.py You can keep key pressed to move. With Shift it moves faster. example-2.py - almost Pacman ;) It uses class Floor to keep information about green dot.