This function parses the key data retrieved by the key logging thread. A KEYBOARD_STRUCT, keyboardData, is used to keep track of key data. This is a very simple parser without the ability to recognize Caps Lock, Num Lock, or special keys.