What Does the Mystery Egg Key Item Do?

On its own, nothing — it is a delivery job. Take it back to Professor Elm.

Once he confirms it really is a Pokémon egg, his assistant meets you in Violet City and hands the egg over. From there it is a waiting game: after roughly twelve to twenty-four hours of play time, it hatches into Togepi.

That clock is real play time rather than wall-clock time, which is why people think the egg is stuck. Keep the party moving and it will hatch. Save before it does if you care about the Togepi's stats, since the egg's personality is set when you receive it.