multiplexed keyboard

Where can I find some code source to manage a multiplexed keyboard in NTO2.0
and NTO2.1 environment system with photon 1.14 or photon 2.0?


Is there a software solution to insert some character in stdin buffer ? (I
would like to read this character with read function)