Technically he should get the assist because he set up the goal. It doesn't matter how far the ball travelled, if the keeper made the pass that directly lead to the goal then it is classed as an assist. GKs have gotten assists before for long throws where the receiving player ended up scoring.