GPIO button control over OSMC

Ok guys I have a question for you… I’ve built my own MediaCenter from my old VCR Sony SLV-ED33 with RPi3 B

and I wanted to know… if there any possibility to take control with GPIO buttons over OSMC (or KODI)… I’ve installed OSMC as OS from official image file… so I wanna use hardware buttons of my VCR to control volume, up and down and power (software) That Easy Timer regulator is also pressable… it has steps to right and left and center (press)… that orange LED is also a button… And one button on the left side of the VCR is the power button (not switch)… so how can I do that kind of magic???

Well searching on Kodi Forum and this Forum always helps
https://discourse.osmc.tv/search?q=gpio%20control
https://forum.kodi.tv/showthread.php?tid=273043