How do I view a hidden menu bar in Mozilla Thunderbird?

In the Windows version of the Mozilla Thunderbird mail program, it’s possible to accidentally hide the menu bar so that the screen looks like this:

Thunderbird for Windows with no menu bar visible

If this happens, press and release the alt or F10 key on your keyboard, which should make it appear again, like this:

Thunderbird for Windows with menu bar visible

Alternately, you can look for the “three lines” button to the right of the search box and click it to show the menus:

Thunderbird menu with three lines