Ac ouple more things about using the NI keyboards without the KK Software. In Komplete Kontrol you havd 128 possible encoder assignments, in straight MIDI mode this reduces to 16, however if you are having to assign by MIDI learn 16 is probably enough!
In the controler editor software you can assign MIDI cc to the 16 available encoders. By default they are assigned 14 through to 29 but you can make it what you want and save it as a configuration. You can also set up key zones for each configuration that will be lit in different colours on the keyboard. There seems to be a limitation on the number of zones but for most purposes it is plenty. The only time I ran out was trying to make a setup for Superior Drummer where all snares were one colour, all kicks an other etc. etc. This is because so many zones are needed because kit pieces are not always adjacent. for example the Hi-Hats fall between the toms.
NI drum products are set up this colourcoding via Komplet Kontrol and it a major advantage IMHO.