How to change a material Albedo texture on queue

iv been looking everywhere for an answer and have not found one!
I’m trying to

if (Input.GetKeyDown(KeyCode.UpArrow))
then i want it to change albedo

Assuming you have the material stored in a variable called material and the new color stored in a variable called newColor and the color property you want to change is called “_Color” in the shader,

if (Input.GetKeyDown(KeyCode.UpArrow)) material.SetColor("_Color", newColor);