[Feature Mouse controls] Fixed a bug when using both the mouse and the keyboard in menus.