Hi, I am sorry to hear that,
You have to press I for inventory and then equip the gun.
As I didn't experience the mouse issue I don't exactly know what's wrong but I updated the controller as I think it is causing the issue you can download it from this link.