Camera rotates when taking a screenshot

I am using oculus dk2 with unity and when taking a screenshot using lefteyeanchor it’s camera rotates Y about -45 units. I can’t figure out what causes this… any ideas?

My code for taking a screenshot:

void Update () {

		if(Input.GetButton("Screenshot") ) {
			if(camera!=null){
				Texture2D t2d = getPicture(camera);
				System.IO.File.WriteAllBytes(pathToSave+"/"+"screenshot"+idx+".png", t2d.EncodeToPNG());
				idx++;
			}else{
				Debug.Log ("camera null");
			}
		}
	
	}

	private Texture2D getPicture(Camera cam) {
		RenderTexture.active = cam.targetTexture;
		Texture2D image = new Texture2D(cam.targetTexture.width, cam.targetTexture.height);
		image.ReadPixels(new Rect(0, 0, cam.targetTexture.width, cam.targetTexture.height), 0, 0);
		image.Apply();
		return image;
	}

Solved, I was using Q and E as screenshot input which were already used by rift.