fixed double key input on OS X
Merge pull request #683 from orikad/master

fixed double key input on OS X