Capturing USB HID keys in OSX, for keyboard?
Key Codes by Many Tricks

https://manytricks.com/keycodes/


  Key Codes is a little utility that displays the key code, unicode value, and modifier keys state for any key combination you press. If you're a developer, this might be useful to you.