OSX Terminal key fixes