Unplug all controllers or input devices, restart the game, and if it stops pressing keys automatically, plug your controller back in after reaching the main menu.
Run the game as administrator, disable antivirus/Defender, and install all files from _CommonRedist (DirectX, Visual C++). Then restart your PC and try again.