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.
You can also access it by using the keyboard shortcut Shift+Q.