unreal Engine 5 Dance System

Hello, when I press J “Play Anim Montage” works, meaning the character dances, but when I try to walk or jump it does it dancing. How can I cancel the dance animation when I try to walk or run? ?