Add a test to confirm the expected behavior of UndoManager when e.g. a keyboard shortcut is pressed, the typing state should not change.
Respect the implied contract from the comments (and common sense) that keypresses involving modifier keys should not change the typing state of UndoManager.
Merge pull request #427 from danielpunkass/fix-undomanager-typing

Fix undomanager typing state with modifier keys