For some reason the game takes a screenshot when pressing the button that produces the characters "< ,> and |" (which is the button between the left-shift and Z keys) on at least Scandinavian (and probably a few other) keyboard layouts. (Also this is a bug because it doesn't/didn't happen in 1.7.x)
Linked issues
Comments

Oh ok I was just too lazy to search for that
Duplicates MC-68399