Touch Bar Button - trigger action on Key Down

Is it possible to support "Key Down" events on the Touch Bar button trigger?

This is how the macOS touch bar buttons work by default.