setup key configs and shiftview function