unity get key enter code example Example 1: use enter key unity if (Input.GetKey(KeyCode.Return)) Example 2: intro keycode unity Input.GetKey(KeyCode.Return)