Luckily has 2 different meanings across 1 category:
Adverb
by good fortune
"fortunately the weather was good"
In a lucky manner; by good fortune; fortunately.
"Luckily, I found my lost keys right before we left for work."