Spaceship controls

I am designing a game in which i have a spaceship which is the player. I have written a script due to which the spaceship drags left and right but doesn’t completely turn. I need help with this.

Thanks