fixed ESC key issue