To select all pixels in a layer, select the layer in the Layers palette and choose Select > All.
To deselect selections, choose Select > Deselect. This is the safest way to deselect the area.
To reselect the most recent selection, choose Select > Reselect.