Rotate object in single button

hi, i want to move the object in single button but i dont know what script should i make…

i just want look like this

inputA = (Input.GetAxis("inputA"));
if (inputA == 1)
//i want to rotate exactly to 90 degree
else 
//i want to rotate back to normal 

but if ill write my script like that, my gameobject doesn`t want to move, how should i do???

thanks

can’t you do something like

transform.rotation *= Quaternion.AngleAxis(90, Vector3.up)