unity get enter key presseds code example Example: use enter key unity if (Input.GetKey(KeyCode.Return))