Added ESC-Key handling