Alternate KeyEvent is a free application that gives you the CHAR, HEX, TShotCut, and Virtual Key of any specified key.
It is a simple program that immediately displays key codes and key constants as soon as any key is depressed on the keyboard and provides normal value, hexadecimal equivalent, character, matching virtual key constant (if possible) and TShortcut. You can also obtain values for control keys like Alt, Shift, etc.
Having the ability to display these codes with Alternate KeyEvent will be useful when you need to implement the compiled data into a software project, for instance. You also have access to a log file that details all the pressed keys with their corresponding information.