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