static @NotNull Key key(@KeyPattern.Namespace final @NotNull String namespace, @KeyPattern.Value final @NotNull String value) {
    return new KeyImpl(namespace, value);
  }
Creates a key.

@param namespace the namespace
@param value the value
@return the key
@throws InvalidKeyException if the namespace or value contains an invalid character
@since 4.0.0
key/src/main/java/net/kyori/adventure/key/Key.java