Return the function key number (1 - 12 for F1 - F12) from a function key code. Returns zero if key_code is not a function key code.
key_code is a numeric keyboard value that is returned by GetKey and KeyFromChar. You can use CharFromKey to convert a key_code into a character.