GetKeyDown(KeyCode.Space) Macos dont work

GetKeyDown(KeyCode.Space) or GetKeyDown(“space”) dont work on Macos (bluetooth keyboard)

Please help!

void Update()
    {
        if (Input.GetKeyDown("space") && isOnGround)
        {
            Debug.Log("Space pressed");
            playerRb.AddForce(Vector3.up * jumpForce, ForceMode.Impulse);
            isOnGround = false;
        }
    }

Project correctly working on Windows, but dont work at Macos

I’d try using KeyCode.Space instead of providing “space” as a string to be parsed. Also, check if you don’t have the same issue on a regular keyboard instead of that bluetooth one. I’ve seen plenty of weirdness from my own bluetooth keyboard devices not working with certain programs (unrelated to Unity).