Added event handler for left and right arrow keypress