Fix for "Main window menu bar can not always be navigated using keyboard".
Adds some javadocs and formattings.