Fix issue #37 - KeyEvent on Mac OS X 

Issues with KeyEvent on Mac OS X issue #37