On desktop, the game is designed to auto-switch between mouse+kb and gamepad controls based on whichever is being used.
In some cases, if you have a gamepad plugged in that exhibits a slight analog drift in the sticks, the game will listen to the gamepad only and ignore mouse+kb input.
If you find the mouse or keyboard are not responding correctly, try unplugging any gamepads from your computer and see if that fixes the issue.