Working left and right buttons