private void txtPowerShellOutput_KeyUp(object sender, KeyEventArgs e) { if (e.KeyData == (Keys.Control | Keys.C)) { e.SuppressKeyPress = true; CtrlCPressed(this, e); PowerShellConsolePrinter.OnCtrlC(this, e); } else if (PowerShellConsolePrinter.WaitForKey) { char key = new KeysConverter().ConvertToString(e.KeyData)[0]; PowerShellConsolePrinter.PerformKeyPressedHandler(this, new KeyPressEventArgs(key)); } else if (e.KeyData == Keys.Enter) { EnterKeyHandler(this, e); PowerShellConsolePrinter.OnEnter(this, e); } }