Camera Rotation when pressing down key

Hello guys, I’ve managed to set up the camera to rotate around my character in 3rd person. However it only moves a certain degree each time when I press A or D key. How can I set it up so that depending on how long I hold the key down, the camera moves so far accordingly?
camera rotation.png

You need a Boolean to tell you that the Key is being held down.

Then in a function you check if the Key is held down using that boolean and execute your rotation logic.

You can either hook that function into the Tick Event or create your own looping logic inside the function itself.