Filter out duplicate keystrokes in software? I have a flaky keyboard which sometimes translates a single keystroke into several, and while I hope to repair it soon, I am wondering if there is a software solution which would help for the time being. For example, it could notice that a single key is being repeated too fast for a human to produce and filter out the bogus key events.

Does such a program exist?
Have you tried setting the Key Repeat Rate in system preferences to Slow?  This may help with your problem.