title: RAWKEYBOARD Flags, checking which flags are on, also SHIFT, CTRL and ALT
body: <p>So I am working with RAWINPUT and I am trying to figure out how to check this:</p>
  
  <pre><code>data.keyboard.Flags
  </code></pre>
  
  <p>to see what flags are on, I want to be able to check for things like key up and key down as well as left and right keys.</p>
  
  <p>Do you need to do something like this:</p>
  
  <pre><code>if(data.keyboard.Flags == (RI_KEY_MAKE|RI_KEY_E0))
  </code></pre>
  
  <p>and</p>
  
  <pre><code>if(data.keyboard.Flags == (RI_KEY_BREAK|RI_KEY_E0)) 
  </code></pre>
  
  <p>I know for the SHIFT key I should check the makecode
  left being: 0x2a
  right being: 0x36</p>
  
  <p>what about the CTRL and ALT keys</p>