I have the same problem. It is described here as well: https://steamcommunity.com/app/427520/discussions/0/1696046342873442785/
Description of the issue: After clicking on 'Exit' in the Factorio main menu, the laptop completely freezes (all monitors). The mouse cursor can not be moved ...
I am using the standard key controls settings, especially next-weapon=TAB . In general it is possible to switch to the next equipped weapon by pressing TAB, also while running north/west/south/east respectively pressing W / A ...