Windows includes several special purpose functions that perform translations on scan codes, character codes, and virtual-key codes provided by the various keystroke messages. These functions include MapVirtualKey, ToAscii, ToUnicode, and VkKeyScan.