Our friend millis() allows us to do that without blocking the program and hanging around waiting for the bouncing to stop. Part 4 will show how millis() timing can be used to detect when a switch has stopped bouncing. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.