Improved handling when encountering bad keys.

Previously the exception would be raised, preventing the buffer from being reset.  No error message was printed to the log window, however, so a confusing set of keystrokes would be duplicated without any indication as to why.
Handle typing single quote characters in the client window.
Scope the exception handling a bit better.
Merge pull request #47 from nirvdrum/client_window_improvements

Client window improvements