Turret Rotation Controlled by Arrow Keys

I have a tank navigation working with the WASD keys and would like to Rotate the Turret using the Arrow keys, Forward Arrow = North, Backward Arrow = South, Left Arrow = East, Right Arrow = West.

I'm not sure the of the method that I should use to approach this, any suggestions?

In update(), test if the key is down and apply a localrotation to your turret's rotatable mesh

something like this:

if( Input.GetKeyDown("J" ) ) { turrentTransform.localRotation *= Quaternion.Angleaxis( 10 * Time.DeltaTime, Vector3.up );

}

What you can try if you want this is create a float called ‘Keyheld’ and add this script into update.

if (Input.GetKeyUp(j))
{
KeyHeld = 1;
}
if (Input.GetKeyUp(“j”))
{
KeyHeld = 0;
}
<

then do

if(Keyheld == 1)
{
//insert your code here//
}

<