Using Laptops with infra red windows installs the driver "Microsoft eHome MCIR 109-Tastatur" by default. this driver causes wrong keycodes when using buffer read from DirectInput. You get wrong keycodes only for some keys. on my german (qwertz) layout i get wrong codes for key "# '" and for key "* + ~" for example. i don't know a good code solution but uninstalling this driver fixes the problem until it gets reinstalled by plug and ply search.