Follow scroll on any key press
Refactored out input code