static @Nullable Emitable emit(final Component component) {
    if (!(component instanceof KeybindComponent)) return null;

    final String key = ((KeybindComponent) component).keybind();

    return emit -> emit.tag(KEYBIND).argument(key);
  }
A transformation that inserts a key binding component.

@since 4.10.0
text-minimessage/src/main/java/net/kyori/adventure/text/minimessage/tag/standard/KeybindTag.java