private void UpdateButtonText() { if (!isEnabled) { enableKeyboardButtonText.text = "Enable Keyboard"; // Close the keyboard error if the keyboard process has ended. theErrorController.CloseKeyboardError(); } else { enableKeyboardButtonText.text = "Disable Keyboard"; } }