It seems a couple keycodes are not mapped correctly, because the tilde key (VK_OEM_5) is being mapped to backslash. Although the VK_OEM-keys aren't exactly the same everywhere I think they should at least conform to the corresponding keys with a us layout...