Try running a system restore at a point before you had this problem. It sounds like a worm or something from PUP you downloaded. Don’t even try to remove the program unless you are very farmilar with the windows registry. They are purposely convoluted to uninstall and you run the risk of it getting deeper into your system.
Other then that you may have a foreign substance on your keyboard that is depressing some of the keys in which you are unaware