// Update is called once per frame void Update() { if (Input.GetKey(key)) { answerText.color = highlightColor; } if (Input.GetKeyUp(key)) { dialogueScript.GiveAnswer(answerNumber); answerText.color = defaultColor; } }