How to move any GameObject?

Hi I am a designer, and I want to learn Unity3D, I am trying to access a GameObject but do not know how someone could tell me how I can only move a GameObject when clicking with the mouse or any key, thanks for you time.

function Update ()
{
    if(Input.GetKey("W"))
    {
        transform.Translate(Vector3.right * Time.deltaTime);
    }

}

Put this script on what you want moved when you push W.

http://unity3d.com/support/documentation/ScriptReference/Transform.Translate.html