Alcove walks: from affine crystals to quantum K-theory