Batch reads from keyboard, vastly improving speed.

This is important for two reasons:
 * Escape sequences can fail if broken apart.
 * Pasting was noticably sluggish.