Unity how to check if key was pressd code example Example: unity check if key pressed if (Input.GetKeyDown(KeyCode.KEY))