main: Make F10 show the cogwheel menu

With the caveat that the menu isn't correctly positioned when the
popups are hidden in fullscreen mode.
main: Handle Ctrl+F toggling the search mode