Debouncing ensures that a handler is not executed too often for an event that may be happening several times per second.