Here's how it works:
1. Progress through the game: You'll need to complete various tasks and missions, including Charms class and other lessons.
2. Complete the "Flying Lesson" mission: This specific mission is required for unlocking Alohomora.
3. Unlock the spell: After completing the Flying Lesson, Alohomora will become available to use in the game.
Once you have Alohomora, you can use it to open locked doors and chests throughout Hogwarts and other areas in the game.