Controlling executors via midi controller or keyboard

Is it possible to control executor buttons with the keyboard when using hog4pc? Or to use a midi controller? And also how would i go about setting this up to use?