How to click a widget button using gamepad?

There seems to be some input firing and registering as the button is changing, is there any code execution on button click event?