An A+ solution for DegDag!

1-4: Dig through the dirt and pick up the bronze key.

5-11: Continue digging through the dirt and use your bronze key to open the bronze door. Pick up the silver key.

12-17: Dig through the dirt and avoid the falling boulders. Use the falling boulders to smash the blobs. If the blobs move, you may need to use your knife to kill them. Pick up the gold key.

18-27: Dig through the dirt and gravel, smash the boulder and continue to the silver door. Use your silver key to open the door and use your gold key to open the treasure!

(Uses 24 energy)