How to make the character sit down and walk with brick logics

hi guys its me again,lately i have opened few threads while learning the upbge game engine and im in the final steps to master the character movements on joystick!!
my final issue is making a character walking while its sitting down,
lets say im pressing the x button on joystick for the character to move down for stealth gameplay! and on top of that i want to add a walk!!
how can i achieve that?
for now i only know how to make the character sit down and sit up with the x button but not walking whille its down with the analog sticks

@blenderaptor if you are here please give me advice!!!

update:ok i did it!! it needed to animate the pivote spine,with that way its easier!!
new update:there is a issue of the upper body not bending