This allows you to configure certain events to trigger on key presses. The main piece of information needed is the key code https://keycode.info/. Once you have that, you can make an object that references a certain event key. There are 6 events that you can bind a key code to:
To add a binding, for example, the right arrow key on a mac keyboard has code 39 you'd add the following to your config:
Amplitude.init({
"bindings": {
39: 'next'
},
"songs": [{}]
})
Now every time the right arrow down is pressed, AmplitudeJS will go to the next song. You can add multiple bindings to the array with multiple key codes. It could be any key you want!