Use the proper tools for selecting or deselecting all objects or lights.
or
Choose Pick > Object and press the on empty space.