How do I make an actor move left and right using the accelerometer?

And how do I make the animation stop at a certain pose (Standing) when you stop tilting the ipod.
Also, I found the page to animation, but it's for the keyboard.
Also, I found the page to animation, but it's for the keyboard.