I have been told by a few music teachers that my software VMPK (Virtual MIDI Piano Keyboard) is used in classrooms as a didactic tool, emulating real MIDI keyboard controllers when you can't provide one to each student. It is free software and works in macOS as well as in Linux and Windows computers. You (the teacher) can also use it along with a projector or a big display to show the students while you press keys on your real MIDI keyboard, maybe resizing the keys and customizing the number of octaves and highlight color on the display for better accessibility. There are some video tutorials on YouTube about using VMPK and Ableton together, hopefully similar to using it with Logic. And you can ask here if you need more assistance.
Regards,
Pedro