void Update() { // Check if the "Enter" key was just released with the chat input not focused if (UIExtensionsInputManager.GetKeyUp(KeyCode.Return) && !_inputField.isFocused) { // If we need to ignore the keypress, do nothing - otherwise activate the input field if (_ignoreNextActivation) { _ignoreNextActivation = false; } else { _inputField.Select(); _inputField.ActivateInputField(); } } }