Is it somehow possible to use emacs with two keyboards at the same time, and each keyboard controlling a different cursor?

I'm asking because I've been asked to teach someone basic computer science and programming.
I would like to teach her in a style similar to The Little Schemer, continually asking her questions and having her write small pieces of code at a time. This would also involve me writing a lot of code snippets, so each of us having their own keyboard would be more convenient.