first pass key remapping