Override NSApplication on MacOSX to fix an issue with KeyUp handling.