void hook_KeyPressed(object sender, KeyPressedEventArgs e) { if (this.Visible == true) this.Visible = false; else this.Visible = true; }