Key to Civilization

Weapon (shortsword), artifact (requires attunement by a creature deemed worthy)

Magical Key able to transform into a sword and cast spells. Item from the Goddess of Civilization.

You have a +1 bonus to attack and damage rolls made with this magic weapon and gives Advantage on History checks. While attuned you are immune to disease. It is a free action to transform this key to Shortsword. The Key of Civilization comes with 3 charges and all charges return at Dawn.

You may expend a charge to cast one of the following spells.

Source: Homebrew