Midi keyboard component tips

Tips on how to lay out a midi keyboard component are you supposed to create an entire class or is it supposed to fit in the audio processor editor class