on-scroll for page up/down and arrow up/down