Fix key-scope switching timing issue.
Merge pull request #97 from windyarts/master

Fix keyboard issue