code: function esc(event) {
  
                      var target = event.target;
                      var nodeName = target.nodeName;
                      var rinput = /^input|textarea$/i;
                      var isBlur = Popup.current === popup;
                      var isInput = rinput.test(nodeName) && target.type !== 'button';
                      var keyCode = event.keyCode;
  
                      // 避免输入状态中 ESC 误操作关闭
                      if (!isBlur || isInput) {
                          return;
                      }
  
                      if (keyCode === 27) {
                          controller.close(event);
                      }
                  }
docs: ESC 快捷键关闭浮层