Fixes keyboard latency issues.

Hopefully fixes all keyboard latency issues and adds back support for pasting (ie: identifies pasted text as new text in the post for saving purposes).