[Unity2D] Controlling HingeJoint2D motor

Hi,

i’m new to Unity, i want to make a simple 2d vehicle game but i can’t figure out how i can controll the hingejoint motor with the keyboard.i have looked at the scripting reference but that explain anything i need to know.
i am using unity 4.3.3, and unityscript.

could some give me a small example of how i can control the hingejoint motor speed and torque ?

i have found some code that i understand and that i got to work, but now there is another problem.
the motor is alway set back to zero even when i am holding down a key.