sure, a lot peeps has done it- but it totally depends on what kb you own. you will find a list over know working kb i a thread here in the forum, if i remember correctly, but yes -lmms DO support some midi-keyboards
If you get yours working it would be nice to know for later references