Keys help plz

How do i make it to where one char runs one set of keys only, and the next chars runs another set?