I’ve never dived into this, but if electronic keyboards are just glorified midi-controllers, I’d have to think you could find a FOSS solution. If they’re not simply midi-controllers, I wouldn’t begin to know. I’d imagine you might have an easier time with keyboards from the 90s or whenever.