Oh man, that wasn’t the solution to the puzzle.
- You get up to the button
- Magnet on the ceiling
- Swap the polarity
- Let it fall
- Swap the polarity so it opens the door and blocks the path up for the block
And then you can take all the time in the world to get the key