Added Listner for Escape key press, Exits if it is pressed