how to detect if a player is pressing the a key in unit code example Example: unity check if key pressed if (Input.GetKeyDown(KeyCode.KEY))