Just do majik! Aka follow the insructions on the top-right corner.
Click on the wand to pick it up Press on space to let go! INSTRUCTIONS: Spoilers! You click on the hat you click on the wand using the wand, you click on the hat 3 times then let go using space then click on the hat again!