Reorganize code
inputGUI: fix graphic glitch that would happen if the user opened the Main Menu while on the character select dialog.