Configure and personalise external keyboard buttons on Mac?
The first step might be to discover what key codes they are putting out. Key Codes will do this for you.

Then you will find that KeyRemap4Macbook will allow you to map those keycodes to something useful.