Key Codes

Key Codes is a utility for macOS 10.13+ that shows key codes, unicode values, and modifier states for pressed keys; useful for developers. Download version 2.2.2 from Many Tricks.

https://manytricks.com/keycodes/