Solution for issue #300: Several keys do not invoke the keyDown handler on OSX 10.8

Tested with OSX 10.8 but should work with OSX 10.7 I believe.