Yes, in theory it’s possible to handle BLM functions with a controller.
It would be difficult with a common MIDI keyboard, as the rows are mapped to Note Number 0..15 of MIDI Channel 1..16
It would also be important that the controller is able to send a SysEx string in order to enable BLM mode, and it has to send a special key combination in order to select pattern mode (because grid edit mode is selected by default)