void Window_KeyPressEvent(object o, KeyPressEventArgs args) { Console.WriteLine("Pressing: {0}", args.Event.Key); CommonGuiInput.KeyPress(args.Event.Key.ToString()); args.RetVal = true; }