mac: Implement global keyboard shortcut API.