Using streams.publish procedure is there a way to publish events with key in Kafka topic?

As we know we can publish events with key in Kafka topic
e.g.
kafka-console-producer --topic key-value-topic --broker-list localhost:9092 --property "parse.key=true"
--property "key.separator=:"
key1:{value1}
key2:{value2}
key3:{value3}

Is there a way to publish events with key using streams.publish ?

Thanks,
Kavita

Sending them as part of the value payload isn't enough?
I used this example: