I think this idea would work better using 3D printed keys. It's possible to print flexible springs, and filament can be used as a hinge pin. The computer just needs to recognize which keys have moved.
So it's in the ballpark of a couple dollars per octave. I agree that's not very competitive with paper.