I've been having an occasional key repeat problem for a while, I'd say for a year. I'll be typing, and then I'll stop, and the last key I pressed starts repeating and keeps going until I press another key. I've also seen it miss characters sometimes. This happens more often than a key repeating by itself. I'll be sure I pressed a key, but I get "wrds like ths." Maybe I'm just not pressing a key "deep" enough. Sometimes I've tried typing a bit slower and that seems to help.
I regret not bringing my laptop in for someone to look at earlier, but I've been very busy for the last couple years. The problem hasn't occurred often enough to make it a problem that I felt compelled to solve right away. It just feels like an annoyance, like, "Come on. This shouldn't have made it off the line like this!" I don't want to start a "war", but I had a Windows laptop before my Mac and I never had these problems with the keyboard. There are other attributes I like about my Mac, so it's annoying but not a big deal for me.
I usually run VMWare Fusion 2.0, and I've suspected that it's a culprit. The problem doesn't just occur on web pages, though that's where I usually notice it when it happens. I've seen it in TextEdit as well. What I notice is it happens when I've got something else running in the background taking up CPU time. Maybe the computer is swapping to/from disk. Sometimes I've seen it happen on a web page with some slow Javascript on it, again taking up CPU time. It seems to me it's a matter of the hardware or software missing the signal from the keyboard. Perhaps it's related to the "keyboard sleep" problem, which I've also seen, where the keyboard and trackpad just go dead. In this case I put the computer to sleep for a bit and then wake it back up. That brings both back for a bit, but it usually reoccurs, in which case I reboot it.
I've been hoping that Apple would come out with a patch for the key repeat problem. So far I haven't seen it. Would an upgrade to Snow Leopard fix it?