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

This implements the keyDown and keyUp handlers for left and right shift, alt, command, and control keys.

Tested with OSX 10.8 but should work with OSX 10.7 I believe.