How to add movement input based on CAMERA rotation, and not the WORLD rotation?

I am new to Unreal Engine. I am making a simple top-down-ish game, but my characters rotation affects the camera above him as well. I have a SpringArm holding the camera above him. When I rotate my camera, I would like to press “W” and expect to walk forward, but of course, I only walk forward compared to the world. Sometimes I press “W” and I walk right. So only in the specific situation that I am rotated towards the worlds idea of forward, am I actually walking forward when I press “W”. I want to make it so that I walk forward based on the cameras idea of forward. Thank you.