How to get the direction in which the character is now directed, and so that a vector can be added to it

I have an attack that works when holding the up key, the character jumps during it, I need him to jump not only up, but also in the direction where he is directed now