title: How rotate spaceship from y-axis to left in unity 3D
body: <p>I am starting a new unity3d project and i want to know how to rotate moving forward spaceship from y-axis to left and right. </p>
  
  <pre><code>void Update(){
     transform.position += transform.forward * Time.deltaTime * 10f;
     if(input.Getkey(KeyCode.LeftArrow))
     {
       //code for rotate ;
     }
  }
  </code></pre>
  
  <p>I want that when I press arrow left key then spaceship rotates from y-axis to left until the arrow key released. </p>