Move joint motor in 2 different directions with 2 different key strokes!

Ok how can i make my joint motor rotate in a +z with key stroke “o” and rotate -z with key stroke “k”

This is my code so far.Just simple to control the motor

function Update() {
   if (Input.GetKey("k")) {
      hingeJoint.useMotor = true;
   } else {
      hingeJoint.useMotor = false;
   }
}

Thanks for any help i get!

Can anyone help?Ive been searching and can not find anything to solve.

Hello, i’m searching for the same simple script… Please, help us… Greats.

FrenchySim