Generally, an applicant can stay in the U.S. while their I-765 application is being processed, as long as they are maintaining their current immigration status or have another valid basis for remaining in the U.S. The fact that you have an EAD or I-765 that is processing does not grant you the right to remain in the country.