Fix keystroke timing on OSX