Rotating first person character on button press, with camer


I’m currently trying to set it so that when I hit the Q or E button they rotate the first person character by 90 degrees. I managed to create a blueprint script from an answer on these forums for doing the same but with a cube object instead of the player character but it doesn’t appear to work for some reason.

This is the script itself:

Any help would be greatly appreciated as I’m a beginner and am out of ideas, I also have added a print string after set for the first two rows which is coming up as working, making this issue even more confusing. Thanks in advance