set key press esc for click cancel