Created a MazeKeyListener class