To give some more general advice, a single-line question (actually not even a full question) with absolutely no context or detail is very hard to provide any useful answers to.
What "keyboard buffer" are you talking about, exactly? Read it with what, a program? A script? Directly from the command line? Exactly what information do you actually need from it, and in what format? For what reason?
Please read the excellent guide by Eric Raymond,
How To Ask Questions The Smart Way, then come back and explain exactly what your actual goals are.