title: Press a keyboard key by his char value C++
body: <p>I would like to write a function that receives a char and presses it on the keyboard.</p>
  <pre class="lang-cpp prettyprint-override"><code>void pressKey(const char key){
          INPUT ip;
          ip.type = INPUT_KEYBOARD;
          ip.ki.wScan = 0; 
          ip.ki.time = 0;
          ip.ki.dwExtraInfo = 0;
          ip.ki.wVk  = //What to put here? (receives WORD of the hex value)
          ip.ki.dwFlags = 0;
          SendInput(1, &amp;ip, sizeof(INPUT));
  }
  </code></pre>
  <p>How can I press the key 'a' (for example) and press it using this method or any other method?</p>