The Invert selection command will change the current selection such that everything previously unselected will now be selected and vice versa. If there is no selection, the entire image area will be selected.
This command is found at Selection Editor.
→ in each image menu. You can also get to it via theThe Strg-I will call the Invert function