Moving ship to a point on keydown

Hi I’m having a problem. I have a ship that’s in the middle of the screen. What I want to happen is when I hit the left arrow key the ship turns to the left a little and movers to the left of the screen, and when I hit the right key, it turns and moves to the right.

I know its most likely something really simple but Iv been killing myself the last two hours trying to get this to work. Anyone have any ideas?

Have a look at this tutorial, character movement is explained in it:

code in C#:

// put the following code in your Update function

float shipDistanceToCam = 10.0F;
// getting the 3 points the ship jumps to
Vector3 left = Camera.main.ScreenToWorldPoint(new Vector3(10,10,shipDistanceToCam));
Vector3 mid = Camera.main.ScreenToWorldPoint(new Vector3(Screen.width/2,10,shipDistanceToCam));
Vector3 right = Camera.main.ScreenToWorldPoint(new Vector3(Screen.width-10,10,shipDistanceToCam));

if(Input.GetKey("left")) {
  gameObject.transform.position = left;
} else if(Input.GetKey("right")) {
  gameObject.transform.position = right;
} else {
  gameObject.transform.position = mid;
}

cannot test the code at the moment, so be carefull

with this the ship jumps to the coordinates.