fixed double key input on OS X