If your computer fails to boot or has a virus you may want to try to boot the computer in Safe Mode.
In Windows XP and Vista to get into Safe Mode press the F8 button on the keyboard. This will open the “Windows Advanced Options Menu”, from here you can select Safe Mode or Safe Mode with Networking.
It may also be worth trying Last Known Good Configuration.
Note this may not work with USB keyboards or wireless keyboards.