Improve documentation from the keyboard buffer
Patch integrated from David Lamkins <david@lamkins.net>