title: How to get the ascii dec number of a keypress in WPF
body: <p>In winform, if i wanted to get the ascii code of a key pressed i would do like so:</p>
  
  <pre><code>Private void textbox1_KeyPress(object sender, KeyEventArgs e)
  {
      int i = e.KeyChar;
  }
  </code></pre>
  
  <p>how would i go about doing like so in WPF?
  Also, is KeyPress in winforms the equivalent of KeyDown in WPF?</p>