how to deteect if a player has pressed a key in unity code example Example: unity check if key pressed if (Input.GetKeyDown(KeyCode.KEY))