Oh, that's a bummer. I'm sorry that happened to you.
However, you always need to go back to your contract of sale for your home to know whether or not the buyer breached the contract. You should discuss this with your real estate agent and consult with an attorney to see if there was a breach in contract and if you are indeed able to keep the earnest deposit monies. But, be aware, the buyers will also most likely seek counsel from their attorney. Meanwhile, what happens to the marketing of your home?
If you think there is good reason to pursue this, then you need to contact an attorney immediately.
Best of luck,
Direct: 856.428.9677 (x248)
Lenny, Vermaat, & Leonard
90 Tanner Street
Haddonfield, NJ 08033