When you swapped keyboard , did you plug it back into same usb slot? If not your keyboard then maybe try different usb slot.
I doubt its anything todo with your upgrade.
Maybe try go to cmd as admin and enter sfc /scannow then press enter.
Since it happens in other games its not a bf6 issue otherwise maybe a keybind issue( like in your keyboard software)?
Thats a weird issues to have and I would assume if happen to me that it's either the Keyboard, usb slot or keyboard software.
Do you have any contollers racing wheel , etc plugged in? If so unplug any usb devices just to troubleshoot .
GL and if you find fix , post it for others.
I've tried plugging into different usb slots with different cables. Its' happening on different keyboards too. I've tried resetting drivers and reduced the polling rates to 1000mhz too. Nothing seems to work. It doesn't seem to effect anything else apart from the keyboards?
Go to google ai or another ai and type you're problem.
I put this - Playing on pc with keyboard and 2 different games and 2 different keyboards , inside games my character walks forward like holding w key. Any ideas?
try what answers it gives. There is a few decent troubleshooting ideas it gives. like unplug any usb devices , keybinds for auto run, overlay issues. Imo since you tried 2 keyboards its not a hardware issues and back to what I said earlier it's prob a keyboard software issue or conflict. Troubleshoot everything bro, make sure no usb devices are plugged in except mouse and keyboard. Maybe try cpu chipset drivers( grab from intel not you're mobo website.
Try updating you're keyboard software. GL