Added support for keymods in OSX. No support when flags changed by themselves yet - only when normal key events are sent.