title: Reading text in Text box after hitting enter C# WPF
body: <p>I have a simple requirment in C# WPF. I got a textbox in which I will enter some text. When I press Enter, I want an event to be fired.  My code is</p>
  
  <pre><code> private void AddKeyword(object sender, KeyEventArgs e)
    {
       if(e.Key == Key.Enter)
        {
           //DO something
        }
    } 
  </code></pre>
  
  <p>I have set my Textbox AcceptReturn =True; The Method is simply not working and I dont see any event fired when I press Enter. Please Help me out. Thanks in Advance</p>