Drop a soda can on the ground? Lay it on its side and roll it around. This will take care of the pressure.
If you bought a can and dropped right before you want to make it open, just tap with your fingers against the side. The carbon dioxide that is mixed with the beverage will rise to the top of the can and you can open it without spilling.
If you drop a can you should turn it around once very slowly. Then you can just open it.