Pad = button, panel, or something else?
In any case you need to check in the on note on callback if your desired key has been pressed and if it has been you enable the corresponding "pad".
Usually a couple of arrays is all you need for the data. One for the component references and one for the corresponding notes. Then in the callback you get the index of the note from your notes array and use that to toggle the component.