Depressing the right arrow should cause 0x14d to be displayed. If the right arrow is depressed, the motor turns one way and if the left arrow is depressed, it turns the other way. The speed is controlled by the up and down cursors. The motor is stopped by depressing the s' key and the program is exited by depression of the q' key. In line 53 the direction bit is set and in lines 81-84 the motor is turned on and then off with a delay which is initially set to 50 ms.
Speed is controlled by up and down arrow keys.