Hi Mohan, I hope you're doing well!
In chapter 10 of the KW06 Reference Manual there's a Pinout table describing the possible configuration for alternative functions of each pin, and from it, we can determine that to set the NMI pin to PTB4, we have to choose ALT0:

This can be done by using the PORT_SetPinSelect function with the following arguments:
PORT_SetPinSelect(kPORT_NMI, kPORT_NMI_OTHERS);
This function automatically disables the NMI and sets the alternative configuration based on priority (ALT0 being the least and ALT7 being the most prioritized). If no higher priority port is enabled, the pin will then be set as ALT0, with enables its functionality as PTB4.
Please let me know if you need any more information.
Best regards,
Sebastian