MainFrame: fix floating menu regression

It was introduced in d05934204defa59efdd51f9023620ad03fc37239.
Not all "bad" key combinations were covered.