If you wish to apply forces and torques on joints during simulation using the keyboard, you can map keys to joint axis and apply a predetermined amount of force every time you press the key. This is useful to control the speed of a car or it wheels or skating for example.