void handle(KeyEvent e, boolean typed) {
        int c = typed ? e.getKeyChar() : e.getKeyCode();
        boolean mayIntercept = c == KeyEvent.VK_SPACE || c == KeyEvent.VK_ENTER;
        if (mayIntercept == typed && emojiPicker.handleKey(c, e.getModifiersEx())) {
          e.consume();
        }
      }
void handle(KeyEvent e, boolean typed)