Again, in case someone else ends up here, you might want to check out the Scan Code Mapper for Windows. Basically, you add a registry key saying what keys you want to remap. Its simpler than writing anything if your requirements are straightforward.
http://www.microsoft.com/whdc/device/input/w2kscan-map.mspx
Night