Minecraft wiki entry for Heads-up_display, associated text: Players can toggle the HUD, the vignette effect on fancy graphics, the pumpkin "view" and the block hitbox by pressing the F1 key. The F1 key will also toggle the surrounding darkness when using the spyglass.