handle ESC to clear out input