On the airflow in a cavity during water entry