Fix 'invalid regular expression stackoverflow' issue
Unbound keyup events as well.
Merge pull request #52 from Hengjie/master

Fix stackover flow