update to capture Ctrl-Z in osx