Added Esc key to exit