Separated WinForms/WPF keyboard capture methods