add Esc key to cancel command-line