How to set input mode in C++

I think it fixed some of my issues for now I used it in blueprints however even now when i press “a” on my xbox the button doesnt click until i give it a legit mouse click and when i try to “click” another button my first one only clicks