How to make ui buttons controller supported

I want to make an title screen using ui button. but can’t find out how to make it controller supported. like when press dpad up you select the button above and a to click it.