Controlling motors with keyboard