How would I go about making a keyboard navigable weapons menu that changes depending on what weapons the player has bought?

Hi

I’m making a third person shooter-platformer. In it, you collect currency to buy new weapons. I want a pause menu for a weapons UI. There will be lots of empty slots initially, but as you buy weapons navigable buttons will appear (weapon slots) and the navigation should not be affected by the order the weapons are bought in, ie weapon 5 will always take up slot 5, weapon 1 will always take up slot 1, etc.

The closest thing I can think of is the weapons UI from Ratchet and Clank: Going Commando.

Thank you in advance!