Unit tests for issue 1117

Added some unit tests for #1117.  Was looking this bug today and wanted
to get the regression tests added for it.
Fixed the macro recording issue

Changed the macro recorder to record the KeyInput values which were
typed, not the values which are processed.  The distinction is that
KeyInputProcessed will display the mapped values.  Recording should
capture what was typed
Merge pull request #1127 from jaredpar/fixes-1117

Fixes 1117