Added modifier key event handling for the macosx backend and cleaned up key event handler.
Updated to not use NSDictionary literals for pre-obj2.0 compiler support.
Removed shift from modifier flags as the character returned already includes shift operation
Merge pull request #1841 from cimarronm/macosx+modifiers

Fixes issue #1259 - Added modifier key handling for macosx backend