title: How do I switch two keyboard key actions?
body: <p>I have a dialog-based MFC project. I have the <code>ON_WM_KEYDOWN()</code> function working and when I press the down key it does what it should.</p>
  
  <p>Now I want to change the down key to the 'w' key, and the left key to 'a', etc. I have very basic MFC knowledge, I am not sure what function I should add and what part of the program to change.</p>
  
  <p>My <code>ON_WM_KEYDOWN()</code> function looks as follows:</p>
  
  <pre><code>if(pMsg-&gt;message == WM_KEYDOWN)
  {
      switch(pMsg-&gt;wParam)
      {
      // Disable OK &amp; Cancel function
      case VK_ESCAPE:
      case VK_RETURN:
          return TRUE;
      }
  }
  </code></pre>