Memory foam is loved for its sink-in properties that mold to your body as you sleep. Made from, mainly, polyurethane, often referred to as 'viscoelastic', it's soft, dense, and comfortable to lay on.
The best way to have any computer component cleaned is to have it professionally serviced, but if you no longer have a service warranty, or if you picked up a second-hand item and want to clean it to ...