I think someone accessed my PC remotely because I noticed my cursor moving on its own and they bought some stuff on Steam. I've already restarted my machine and unplugged the Ethernet cable from the router. What steps should I take to ensure this person can't access my computer again?
3 Answers
First off, are you sure they didn't just get into your Steam account instead? That's a common issue. Anyway, it's a good idea to change all your passwords right away. Just to be safe, you might want to completely wipe your system and reinstall the OS to get rid of any potential malware.
Before jumping to conclusions, do you have any solid proof that someone accessed your PC remotely? It's often easier for someone to hijack your account rather than remote into your system. If you feel your PC is indeed compromised, wiping it and reinstalling the OS is the way to go. Also, make sure to change your passwords to something unique and enable two-factor authentication where you can.
If you truly believe someone accessed your PC, I recommend nuking your SSD and doing a fresh install of the operating system. It's likely the safest path. You might want to prepare a fresh installation on a USB drive for the best results.

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures