Check if application should close (KEY_ESCAPE pressed or windows close icon clicked)
See Implementation
Check if application should close (KEY_ESCAPE pressed or windows close icon clicked)