This might work for you, the Pimoroni Keybow. The older version uses a text file to configure it, this new version seems more advanced but might still be a fit for what you’re after.