Included on-key function for tempo

Use the up and down arrow keys to control. A conditional issue occurs
in the tock function now.