Make Camera Orbit Player on Input

I’m trying to make the game camera orbit in 90 degree increments around the player when you press a button.

Any help would be appreciated

Open your blueprint-
add a scene component , make the camera child of the scenecomponent
Place the scene component right where the player is , at 0 0 0 , and move away the camera with desired hight and angle.
now use your input to rotate the scenecomponent around the z, so (0,0,90)
this way you can rotate the camera in circle around the position looking to the 000,

Beware you want to do this action only 1 time, not contiluosly.
use a custom event ,or a action mapping , or key events

Beware some input like axis mapping work like tick event and run countinously,