Added Escape button event

Closes program on Esc, added small overlay, Tidied code slightly