@Traumerr It looks like your keyboard is not wireless, but if it is and I'm just missing that detail, please test with the keyboard plugged in the entire time. Either way, please set Windows to not show any notifications while you play, and also close any apps like Discord or Steam that include overlays before launching Sims 3. If you play through the EA App, as opposed to having a disc or Steam install, disable its in-game overlay as well.
If that doesn't help, please try playing in a clean boot.
https://support.microsoft.com/en-us/topic/how-to-perform-a-clean-boot-in-windows-da2f9573-6eec-00ad-2f8a-a97a1807f3dd
The one service to leave enabled is the EABackgroundService, which the EA App needs in order to run. Disable the rest as described.
When you reboot your computer, go through the Task Manager's background processes list shutting down any service that doesn't absolutely need to be running, for example anything from MSI Afterburner to RGB software might still be enabled. If you accidentally kill a critical process and it doesn't restart on its own, just reboot your computer again.
If that doesn't help either, let me know what kind of install you have (EA App, disc, Steam, something else), and please also run a dxdiag and attach it to a post.
https://help.ea.com/en-us/help/pc/how-to-gather-dxdiag-information/