There is no need to use -Vector3.forward, just use Vector3.back, looks better and more logically
if (Input.GetKey(KeyCode.Q))
{
transform.Rotate(Vector3.forward * rotationSpeed);
}
else if (Input.GetKey(KeyCode.D))
{
transform.Rotate(Vector3.back * rotationSpeed);