I'm not an REO listing agent but I disagree with the advice given below. Understanding that losing your home is a devastating occurrence, you can now control the process by which you vacate the property,as no matter what, you have lost all rights to it. Tho only consolation is that you were possibly able to live in the home many months rent free.
If you've confirmed that the home did actually go to foreclosure, then pack and move. Leave the home in good condition, so as to have pride that you did not impact your neighbors home values by damaging the property on the way out. Do NOT hold the home ransom for cash for keys, which is never guaranteed in the first place, and should not be expected. Ethically and morally, you should move out, leave the home in good condition and find another home now. As for purchasing another home, focus on keeping your payments on other bills current, so that you can recover your credit score as quickly as possible, However with the current laws, a foreclosure will not allow you to obtain another mortgage for 7 years, not 3.
Again, I'm so sorry for your circumstances, as we all are. If you know anyone else who is having difficulty in paying their mortgage, please refer them to a certified distressed property expert, as many realtors are these days. There are programs that could possibly have helped avoid this foreclosure if you work with your lender ealry enough.
My webiste has some free reports that a homeowner can use to evaluate their options.