added keyboard shortcuts for left and right arrows