code: private void textFieldSearchTextKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_textFieldSearchTextKeyPressed
      switch (evt.getKeyCode()) {
        case KeyEvent.VK_ESCAPE: {
          this.setVisible(false);
          this.baseEditor.requestActive();
          evt.consume();
        }
        break;
        case KeyEvent.VK_ENTER: {
          if (evt.isShiftDown()) {
            findPrev();
          } else {
            findNext();
          }
          evt.consume();
        }
        break;
      }
    }
docs: </editor-fold>//GEN-END:initComponents