Hi,
You have to set the KeyLab MKII as an MCU (Mackie Control) device inside Sonar. Use the 2nd MIDI Port of the KeyLab in the In and Out section. Then on your KeyLab MK2 set the DAW Mode to MCU (long press on the DAW button to change the mode).
Regards,
Matthieu