Questions & Answers about Miro la luna por la ventana.
Spanish uses the preposition a before direct objects only when they are:
• specific persons (e.g. veo a María)
• personified animals or sometimes beloved pets
Because luna (moon) is an inanimate object, no a is needed.