title: Keyboard Input & the Win32 message loop
body: <p>How do I handle key presses and key up events in the windows message loop? I need to be able to call two functions <code>OnKeyUp(char c);</code> and <code>OnKeyDown(char c);</code>.</p>
  
  <p>Current literature I've found from googling has lead me to confusion over WM_CHAR or WM_KEYUP and WM_KEYDOWN, and is normally targeted at PDA or Managed code, whereas I'm using C++.</p>