I believe what you want is a MIDI splitter, so you can send the MIDI output from your keyboard to both Teensy and something else which receives MIDI. Right?

Many MIDI devices have this built in,...