Zap functionality

Hi
I am new to Kodi development and trying to create a video addon.
So far I have created a list of video channels and the videos are playing fine but now I need to change the playing video channel with the remote up and down button.
Currently I have to move to the channel and press ok but I want to change the channel directly as I move to that channel name from the remote up/down button.
I have tried kodi video settings but could not find anything which could make it work.

Any help would be appreciated