Character movement relative to camera

I can’t figure out how to recreate this movement system, where characters s and a movement pivots around camera’s z.
Does anyone have any clue how?

Reference:
bandicam 2023-09-09 20-16-58-756