Now you can use @key_name and @category_name to retrieve the name of the key and the name of the type, similar to ProbeJS snippets.
@key_name
@category_name
A Kubejs Addition