2D Character Movement

It’s more of a dash in the direction the character is facing. I can get one direction down it’s just being able to switch depending on which way the character is facing is the problem I’m having.