[VR] Different binding of keys with differents items

Hello, i’m want to make a thing that when i don’t take the sword on the floor for exemple my A boutton on my Oculus touch is binded for jumping but when i take that sword, the A boutton is now binded to attack (Just for exemple)

Another exemple : In Zelda : Breath of the wild, when you take your bow, some of the key have other actions than they have when you don’t take it, that’s what i want to do.

If someone know how to do that i will be happy to know how to do it, thanks for all. HaseFX