1. Press the "options" button underneath the stage number, then press level select. Select stage 1.
2. Pick up the glowing key. Press the "options" button underneath the stage number again, then press level select. Select stage 46 and now you will have a key. Use the key to open the door.