Virus' that record keystrokeds are keyloggers and trojans are small programs that can run without alerting the user and allow the person who sent the virus to acsess the victim's computer without them knowing. One way to beat a keylogger is to use the on screen keyboard but that's a different matter... for a trojan to uninstall it self is possible and would be a good idea as you can remove it before anyone finds it.