Fetching details from the dictionary...
willful; wilful; selfish; self-centered; egoistic
carefree; do-as-you-please; freewheeling; free spirited
気ままに生きる彼女を羨ましいと思った。
I envied how freely she lived her life.
子供の気ままさに振り回された。
I was worn out by the child's willful behavior.
旅の間は気ままに食べたい物を食べ、行きたい場所へ行った。
During the trip, I ate whatever I wanted and went wherever I pleased.