How to do a Lean in/out Feature

I figured it out haha, the problem is that the timeline was playing over and over again when Q was held down. Just checked Use last Keyframe tab in the timeline and now it returns back to the original position of the character when Q is released!! :smiley: