Macでキーロガー - Qiita

[addGlobalMonitorForEventsMatchingMask:handler:](https://developer.apple.com/library/mac/documentation/Cocoa/Refere...