Assuming this is purely a software issue, and not an issue with your keyboard, you might want to consider replacing OS X with an operating system that doesn't cause such mysterious issues and doesn't restrict its users so much.
openSUSE, for instance, provides step-by-step documentation on how to perform the GNU/Linux installation on a Mac.
You may know SUSE from watching Jeopardy!
. SUSE was the operating system running Watson -- IBM's Jeopardy!
Be cautious about putting your trust in Mac OS X. When issues like this happen with a proprietary operating system like OS X, you're left at the mercy of the software proprietor (in this case, Apple).
On an operating system that respects the users' freedoms, if worse comes to worst, you can hire a programmer to examine the code to figure out what's wrong and fix it for you. Or, you can even learn to program and then fix it yourself if you really wanted to.
With OS X, even if you knew how to program you wouldn't be allowed to fix it, because the source code for OS X is withheld from the user.