master updated. Waits for input from the keyboard for every beat, and notices and fills with a pause if no input event detected