Fix for switching apps (issue #5).
Merge pull request #22 from ehuss/fix-keyup

Fix for switching apps (issue #5).