Use any axis, left, right, up or down

Correct the calibration math.
DRY up the input_sampling during calibration.
Abort when you get 255 during calibration for either the lower or upper
sample.
Write to the console in-place.
Handle keyboard interrupts gracefully.
All things mustn't come to a brutal end.