protected virtual void OnKeyPress (KeyPressEventArgs e) { KeyPressEventHandler eh = (KeyPressEventHandler)(Events [KeyPressEvent]); if (eh != null) eh (this, e); }