Using either the IOKit or Quartz Event Services libraries, start adding support for the application on MacOS.