handle mouse click on spin boxes for speed and direction