public Console(SpriteFont font, int height = 120) { _height = height; _input = new InputField("", font, "console", 99, new Vector2(0, _height), new Vector2((int)Util.Resolution.VirtualViewport.Length(), font.MeasureString("A").Y)); _input.Visible = false; _input.AddKeyHandler(delegate(object o, KeyEventArgs args) { if (args.KeyCode == Keys.Enter) { string val = _input.Clear(); } }); InputSystem.KeyDown += HandleKeys; }