private void KeyUpGUI() { if (Event.current.keyCode == keyCodeFocus) { if (focusedOnInputLine) { GUI.FocusControl(string.Empty); } else { GUI.FocusControl(nameOfControle); } } if (focusedOnInputLine) //logic for command suggestions { if (!InputLine.IsEmpty()) { if (Event.current.keyCode == keyCodeSwitch) { InputLine.Switch(); } } } if (Event.current.keyCode == keyCodeUp) { InputLine.Up(); } else if (Event.current.keyCode == keyCodeDown) { InputLine.Down(); } else if (Event.current.keyCode == keyCodeShowHide) { if (!(focusOnEnable = Visible = !Visible)) { InputLine.OnSwitchFix(); } } else if (Event.current.keyCode == keyCodeShowHide2) { if (Visible) { Visible = !Visible; } } }