Have you tried connecting an external keyboard up to the laptop to see if that works or not? Also, have you tried entering in text, like your password for example, and hitting enter to see if it is actually being entered just not displayed?
I'd like to see some troubleshooting done before saying for sure, but it does sound a bit like you may have been hit with a rather poorly written keylogger program. So, just to be on the safe side, don't log into any sites that have sensitive info like bank, credit card, etc until you get this sorted out. If you already have, I'd go and make sure to change the passwords on those accounts. These are probably unnecessary precautions, but they won't hurt anything even if they are and it's certainly better than the alternative if this is a keylogger we're dealing with.
I do not quite understand what is going on with my computer but everything will be fine for about an hour or so then all of a sudden anytime I try to click a link or something like that the computer wont allow me to. I also lose the ability to type in a search bar. The only thing that fixes it is to hard reset the computer. Once I reset it the sound goes from headphones to the speakers without me changing anything. I assume a virus but I cant be certain because it can be reset but it will happen again.
When clicking links I am able to right click and select open in new tab and that works but I cannot left click. The typing issue I figured out by letting my computer sleep and waking it up then trying to log in and it will not type anything.