The problem with creating a non native animation to act natively is you'll have to make key release and key press functions too otherwise the animation will just continue to loop and pressing keys like jump or attack won't stop the animation from looping.
How do you want the slow walk to function exactly? In your game as you approach an enemy do you want the player to walk slower? If so anim walk2 would be better suited.