Fixed OSX layouts.
Use keyboard lib rather than xdotool.