This command has the same action as clicking on the small button in the bottom left corner of the image. See Quick Mask.
You can access this command from the main menu through Select → Toggle Quick Mask.
By pressing the Shift+Q keyboard shortcut.