I have found this example of how to disable the Window key on the MSDN Web site and adapted it into a stand-alone program to disable the Windows key before playing a game and re-enabling it afterwards.
Find the modified source here.
There is also a GitHub repository.