Haply has 2 different meanings across 1 category:
Adverb
by accident
"betrayed by a word haply overheard"
By accident or luck.