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

Add modifier key handling to key event handlers for macosx backend. Clean up code to use NS foundation constants for keys and simplified convertKeyEvent selector