Your situation is more complicated than just choosing where you want to live. 12 is the age you can speak to a judge, but, in your case, you aren't choosing between parents. An unrelated adult doesn't have standing to sue for custody except under specific circumstances. You'd need to speak to someone specifically about your case. Also, if you are being abused you can make a report to CPS or try talking to a teacher or counselor at your school. Good luck.
Sign up to receive a 5-part series of useful information and advice about child custody law.