Creating a menu for gamepad?

What is the best way to create a menu (Main Menu, pause menu and the like) for use with the keyboard or a gamepad? As so far I’ve only been able to create a menu for use with a mouse, Thanks in advance.

Maybe you can refer to this open source tool

But not free.