Handle invalid voxel coordinate selection and exit properly on escape