Help me

I made a script for a 2D game movement and not working.

#pragma strict



function Move () {

    if(Input.GetKeyDown("A")){
        transform.Translate(-1, 0, 0);

    }
    
    if(Input.GetKeyDown("D")){
        transform.Translate(1, 0, 0);

    }
}

Change the word… “Move” to “Update”