numeric key input handler (key 1-5 to control speed)