InputKeySelector empties widget on right-click, but does not trigger OnKeySelected

I am using UInputKeySelectors to allow in-game selection of key bindings. It generally works fine, but if a UInputKeySelector has a selected key, and then you right-click on the Selector, the UI displays the Selector has having no key selected, but it does not trigger the “OnKeySelected” event, so my key is still bound. How do I fix this so that either (a) right-clicking on the selector does not empty the selector, or (b) emptying the selector by right-clicking triggers an event so that I can put it back the way it was?

I was mistaken in my description of the problem. When you right-click on a UInputKeySelector, it clears the selector’s selected key and broadcasts OnKeySelected.