Hello @chcjgr
Exactly as @Carbonic wrote, I also think what you're experiencing is because of a connected Gamepad, Joystick or a USB device that is interfering with the game. This usually causes this kind of problem.
If you don't have any such devices connected however, you could try doing a Clean Boot, just as a test to see if it makes any difference: https://help.ea.com/en/article/how-to-clean-boot-your-pc/
For support, please visit the EA Help website. For instructions on how to use the EA Help services, please refer to How to use EA Help.
Best regards
FIDELI7Y
http://battlelog.battlefield.com/bf4/user/FIDELI7Y/
Battlefield Community Helper Veteran & DICE Friend in BF3
Don't forget to "Grant XP" if you're satisfied with the support I assisted you with. Did I help you with solving a problem? - Accept my answer as the solution!