Dropdown selection on custom button


#1

I’m not sure what’s the best way to apply selection by some custom button.
By default it works on enter (keycode 13).
I want same behavior on space or any other button.
Thx.