Valley switch in a graphene superlattice due to pseudo-Andreev reflection