```
intMoveSpeed=3;
if(Input.GetKey(KeyCode.W))
{
obj.transform.Translate(Vector3.up*Time.deltaTime*MoveSpeed);
}
if(Input.GetKey(KeyCode.S))
{
obj.transform.Translate(Vector3.down*Time.deltaTime*MoveSpeed);
}
if(Input.GetKey(KeyCode.A))
{
obj.transform.Translate(Vector3.back*Time.deltaTime*MoveSpeed);
}
if(Input.GetKey(KeyCode.D))
{
obj.transform.Translate(Vector3.forward*Time.deltaTime*MoveSpeed);
}
```