How can I make a UMG widget respond correctly to keyboard and gamepad input?

I created a menu/UI in Unreal Engine. How can I make sure players can move through the buttons using the keyboard or a controller?

I’d take a look at something like ( if you can afford it etc ):

which has the most elegant mapping system I’ve seen. Literally all done in data. Even axis inversion.

I can paste a couple of pics when I’m at a machine it you like…