added KeyDown case for ESC