Using the hotkey component

If I save the result of a thotkey to an ini file it stores the value
as an integer.
The value saved for the Insert key for example, is 36. When that value
is read back to the hotkey from the ini file, the hotkey shows 'Num
0'.
How can I turn those integers back to the value that initially shows
in the hotkey when you press a key such as these?
It works fine for Tab and the other alphanumeric keys, even F1- F12
will display as F1 - F12 just fine.

Thanks