Hey buddy, this bug is generally caused by having some HOTAS or other peripheral plugged into the computer other than KBM and a gamepad. It's concerning that it's persisting when you said you've unplugged your other peripherals already.
To help me debug this, can you confirm whether or not you've unplugged absolutely everything other than KBM + gamepad? If you've only got KBM and gamepad plugged in, can you try running a fresh instance of the game and see if controls function correctly?