Using the magic wand tool
The magic wand tool works almost exactly the same way as the fill tool, but instead of changing the colors of matching points, it selects them. When you click somewhere wiwth the magic wand tool, all continuous pixels with the same color are selected. A demonstration:

See also
Working with selection
Using multiple selection
Selection Topics
Tools