Block program until keyboard or quit event.
Scale based on maximum value in 640x480 graph space.