title: Intercept and cancel key press events for DirectX game
body: <p>I'm working on a small tool for a DirectX game and I want to prevent the user from pressing a certain key (F12 in this case) for a certain period. </p>
  
  <p>I could find many options for simulating keypresses but what are the options when it comes to nulling out a keystroke before the game reads it?</p>
  
  <p>The language doesn't really matter, although I would prefer a C# or C++ solution, or just a nudge in the right direction :)</p>
  
  <p>Thanks in advance!</p>