Hitting `TAB` while one a section header (*e.g.* 'Unstaged Changes' or 'Untracked Files') will cause that section to collapse. Hitting `TAB` again will expand the section again.

I have done this several times since some part of my brain things tabbing between the sections is a thing one can do (but my brain is wrong on this count).