Are you trying to set those buttons up for your Sparrow like I did, or for something else?
For BF4 to change weapon.
How can I add a function to this buttons K4,K5
I don't recall, but i think you may have to go into LGS and assign keyboard strokes in the drop down menu to get left scroll and right scroll to bind to a function.
yes I think it have to be added as a kb button. can it be any kay random or one from list?

(Radom pic from google)
Example :I made (prev tab in browser C ) button (q)from KB and when i add from xim (reload commando ) it was reloading but at same time going Left. Are some kb buttons that I need to not bound to g700s ?
A guess i mis something, There are some basic rules that I need to know. I search long on you tube advances tutorial how LGS works but the one that I need to know is not to find. I was experimenting and than fall in sleep

i had looong day.