hook left and right arrow keypress