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;
}
}