various keyboard/blessed integration fixes

bonus: cp437-encoded input now works correctly. closes issue #51