public void Update(GameTime gameTime) { KeyboardState state = Keyboard.GetState(); if (state.IsKeyDown(Keys.OemTilde)) { this.Show(); } if (state.IsKeyDown(Keys.Escape) && Visible) { this.Hide(); } if (this.Visible) { foreach (Keys k in state.GetPressedKeys()) { Input.Write(k.ToString()); } } }