Need Help with Code

I need help with something in my code. Here is the code:

PlayerMovement.prototype.update = function(dt) 
{
    // movement
    if(this.app.keyboard.isPressed(pc.KEY_A || this.app.keyboard.isPressed(pc.KEY_LEFT))
    (
        this.entity.rigidbody.applyForce(-10, 0, 0)
    )   
};

For some reason, the } at the very bottom says “the parser expected to find a ‘)’ to match the ‘(’ token here.” Does anybody know how to fix this? I am a beginner, by the way. Here is the link to the editor:

https://playcanvas.com/editor/scene/2240760

Hi @Markus_Jockell!

It looks like there is a missing bracket and some wrong brackets.

PlayerMovement.prototype.update = function(dt) 
{
    // movement
    if (this.app.keyboard.isPressed(pc.KEY_A) || this.app.keyboard.isPressed(pc.KEY_LEFT)) 
    {
        this.entity.rigidbody.applyForce(-10, 0, 0)
    }
};