I hope it gets worked out. Hopefully you are able to sit down as a couple and discuss some things. I don't think cheating is at all the thing to do. Sex is a very important part of a marriage but it isn't the only part. I hope she can find the marriage important enough to talk things out and make some adjustments. Maybe try to do something crazy and creative to turn her on.
I pray it all ends up working out.