How do u botton config?

i dont know how to button config on this thing im trying to use a dpad but i cant seem to find the button config can someone help me im useing mame32k btw

run a game, and while it’s running, hit tab. arrow down to input (this game). Hit enter. Config however you like.

edit Learning proper grammer would also be nice.