Modular Piano Keys contains a Piano Key Spawner that uses optimized Instanced Static meshes for best performance.
You can animate the individual Piano Keys by calling the BP function "SetKeyRotation" that will rotate any key like C5, G#6 etc, by whatever Degree of rotation you may like.
It can spawn keys from 0 to 128 keys starting with C0. Meaning you can spawn a very small keyboard, with 12 keys or so, or spawn a full size piano with 128 keys.
Suitable for those looking to animate piano key presses or animation and drive the animation procedurally at runtime.
To easily automatically animate the piano you can use plugins like MidiEngine that will drive the key presses with MIDI.
The Plugin comes with Content that is ready to use and utilizes a construction script.
Watch the video: Youtube