Continuously mc on press

I want a mc to continuously move from right to left. When user clicks right button, it should move right and if left is clicked mc should move left. when no button is pressed mc should move from right to left in a loop.