As a proud black individual who's writing a a black centric novel/game and is apart of a black entrepreneur support group that meets weekly, I feel obligated to respond to this topic.
I'll start by saying everyone in here has given you great advice I read every post carefully, and while I dont 100% agree with everything it's definitely on the right track. Focus on writing your character based on who they are and how they were raised. If you keep what you have going it'll turn out be great.
I think everyone would agree writing a character based on their environment/culture/upbringing is the way to go. But there may still be the issue of automatically assigning stereotypical traits to a certain culture. Just something we should pay attention to. i.e. A Black community need not be limited to the ghettos.
I had a main protagonist who was black - or at least not white. You can see her in the third image in my signature. I wrote her as "a person" first and foremost, with her own preferences, hopes, dreams etc., not as "a black person", and it seems to me that it worked reasonably well. I've never had anyone complaining about stereotypes/lack of realism/whatever.
People will project on you and your story, and others still will preach at you not because they think you need to know what they're saying, but because they'd like it if others could see and hear them saying it to you.
The best way to not be insensitive or racist is to not be that way. People might still say you are. But always ask yourself "Would they care if no one was around to see or hear them?" If the answer is no, they're probably full of crap.
People are gonna say what they want to say. Please don't feel like you have to walk on eggshells, the dumbest, most hateful people are the ones who usually speak the loudest on the internet.
Yes, they've been trying to hijack media in the past few years, but if you listen carefully, they aren't after equality. They are actually after superiority and the ability to oppress.
You write your character however the hell you want. And remember no one that you or I have ever met is the one who should be giving all of us advice. No one person can define right or wrong in these areas. Someone will always have a problem, whether it's bc they really see one, or because they're just unhappy.