add key event listeners to handle left and right arrows, cancels slider if other keys