title: How to close only single dialog on ESC key in WPF/WinForms?
body: <p>I have a WPF form. It handles the <code>KeyUp</code> event and if the released key was Escape, it closes itself.</p>
  
  <p>Also this form has a button to show some Windows Form as a dialog. It does handle the Escape key in the same way.</p>
  
  <p>What happens is that when I press Escape when in the child dialog, both windows close. I expect only the child Windows Forms window to close in this case.</p>
  
  <p>What's the proper way to handle this?</p>