Well, the owner of the keychain should know not to leave pepper spray just lying around for anyone to grab. I doubt the 4 year-old knew what he/she wsa spraying.
Of course, the parents should have been watching their child, but its nearly impossible to keep your eye on a toddler every second, especially in a chaotic situation like a wedding reception. Maybe the little one should have been home with a babysitter?