added left and right key press event