How do I make a ship move with A/D?

I’m currently working on a naval game, I’ve already scripted the ship being able to move forward but I’m having issues with making the ship rotate left or right.

I’ve tried using hinge constraint but it didn’t work.