Added functionality to capture keyboard input directly to a WinForms/WPF control.