Pay attention to road signs that indicate whether vehicle traffic is prohibited in your specific neighborhood.
If there are gates, in most residential areas you can unlock them with your apartment key. If not, contact your building manager. Don't forget to close the gate behind you.