title: Key listener / logger using GetAsyncKeyState()
body: <p>I saw that a lot of people were able to use a for loop to determine the value of the key pressed, for example it would be GetAsyncKeyState(41) and they could therefore easily use a loop but for some reason it only works for me if I type in GetAsyncKeyState(0x41) etc, is there something I can do about this so I can loop through it instead of having to type each value individually?</p>
  
  <pre><code>int main()
  {
  while(!GetAsyncKeyState(VK_F8))
  {
      for(int i=65; i&lt;90; i++)
      {
  
          if(GetAsyncKeyState(i))
          {
          log &lt;&lt; "HELLO DER";
          }
          Sleep(200);
       }
  }
  }
  </code></pre>