Help to convert root animation to in place animation

Hi everyone, I have a root animation and need to convert it to in place, if I disable the the Y movement curve in Y, the body keeps in place but the feet still going forward and I don’t know how to make them keep the motion while preserving their position related to the root. Not sure if this is possible or if is too advanced, here’s a gif showing the problem:

Imgur

Does anybody knows what settings should be changed in order to make the feet movement happens in place?