improved keyboard scrolling control