Keys2ScanCodes Tired of having to do this constantly: UINT scanCodeA = MapVirtualKey(0x41, MAPVK_VK_TO_VSC); If so, i have a better method for you, look in main.cpp to see a better way of doing it.