Template update method in key binding technology using lattice masking