Force mode Force doesnt work after Building game

I made Character Controller with AddForce:

void Update()
    {
        if (Input.GetKey(KeyCode.D)) {
            GetComponent<SpriteRenderer>().flipX = false;
            GetComponent<Rigidbody2D>().AddForce(new Vector2(1, 0), ForceMode2D.Force);
        }
        else if (Input.GetKey(KeyCode.A)) {
            GetComponent<SpriteRenderer>().flipX = true;
            GetComponent<Rigidbody2D>().AddForce(new Vector2(-1, 0), ForceMode2D.Force);
        }
        else if (Input.GetKeyDown(KeyCode.Space) && !inAir) {
            inAir = true;
            GetComponent<Rigidbody2D>().AddForce(new Vector2(0, 10), ForceMode2D.Impulse);
        }
        if (Input.GetKeyDown(KeyCode.R)) {
            inAir = false;
            transform.position = new Vector3((float)-5.47, (float)-1.07, 0);
        }
    }

Force mode doesnt work after building the game, jump work fine. But both works fine in Unity Play mode What wrong?

Just a guess, but the rate at which Update is called may well be very different in a build than in the editor’s play mode. Try moving this code from Update into FixedUpdate, which is always called at a fixed rate. See if that makes a difference. (The impulse would still work because you only have to apply it once, which is what you’re doing.)

I decided it, but i got new problem. Buttons doesnt output log and my character doesnt walk
6406411--715123--upload_2020-10-11_18-29-14.png

Well, it’s not much fun to help you if you ignore my advice and replace your code that has a problem with totally different code that has a problem. In this case, what makes you think that either the LeftMoveClick or RightMoveClick methods ever get called?