How would you rotate the camera when moving left or right, like Quake I movement?

I believe he is trying to get the camera to tilt left or right slightly depending on what key is pressed, those being the A key or the D key