This is often caused by something else plugged into your computer pulling on the controls. Most commonly it's caused by a controller you may have charging, on rare occasions trackpads and headset brands with a lot of button controls have also been reported. Try unplugging or disabling any additional peripherals and rebooting the game (if needed).