check if the 1 key has been pressed unity code example Example: unity check if key pressed if (Input.GetKeyDown(KeyCode.KEY))