If these are the same sysmptoms that you had the last time, try using a different keyboard.
You can pick up cheap keyboards for under $10 at most office supply or computer stores.
If a different keyboard corrects the problem again, then you haveto ask your self a question;
Is it possible that something is getting spilled on my keyboard? Soda, coffee, water, animal urine, all are the number one cause of keyboard failure.
A very dirty environment could also cause the keyboard to malfunction.
If the keyboard is clean, and is the cause of the problem, then you have 3 other possabilities;
1. Is the keyboard cable getting pinched or pulled? Change how the cable is routed to prevent pinches, or buy a wireless keyboard.
2. Do youget a static shock when you sit down at your computer and touch the keyboard? If so, the static discharge could be killing the keyboard. The simplist way to correct this is to touch a piece of grounded metal before you touch the keyboard.
3. Once everything else is ruled out, it is possible that your motherboard is bad, and is overvoltaging the keyboard port.
I do not believe that there is anything wrong with your hard drive.