Transfor direction not working

Hey guys the transform direction does not work when i press w do you know why?

if( Input.GetKeyDown( "w" ) )
{
transform.TransformDirection(Vector3.forward);
}

Try this instead:

if(Input.GetKeyDown(KeyCode.W))
{
  transform.position += Vector3.forward * SomeSpeed * Time.deltaTime;
}