makes left ans right scrolling stop when any button is pressed