Added key press listener on quit confirmation

I think it can be optimized but does the job :)