OnClicked Event by Mouse, Keyboard or Gamepad?

I don’t know if this will work on widget but you can try something like this to get the name of button or do a branch to check if it was specific controller:

And the result: