fixed checking escape key async on fetching tables