Started testing on OS X. Fixed syntax and lint errors. Switched to 'import Quartz' import style which gives a 25x speed improvement.
Filled out the keyboard codes for OS X. Still some OS X unit tests failing though.