Controlling a game object using hand controller thumbstick

Hey fams
quick question on how to switch control of the thumbstick
Im working on this scene in VR now
What i want to do is when the player teleports into a trigger in front of the cannon they will get the ability to press a key on the stick (X) to switch control to the cannon, when they do they cannot teleport anymore and the grab key will load the cannon, the thumbstick will move the cannon head up down left right and the trigger key will fire
after that they press x again to exit cannon mode.
any suggestions would be appreciated