Registering Laptop Keystrokes

I'm sadly working on macOS, so I'm not sure this applies. In either case, it sounds like you're suggesting that I intercept the keystrokes with some external software, but I'm not sure how I'd then pass that information to the microcontroller. Thoughts on that?