1. These days, a keyboard does not have to be a piano. Good portable keyboards are available.
Recent case-law has established that MIDI is 'recorded sound'. So the playing of these MIDI keyboards are both live music and recorded music, at the same time.