title: Moving the gameObject on the x axis a certain amount when left key is pressed, then stopping at the game border
body: <p>I was wondering if anyone has any idea how to go about doing this in c# (Unity). Whenever the left or right arrow is pressed the player will move a certain amount left / right on the x axis, and can't move when they are next to the game border.</p>
  
  <p>Thanks!</p>