Add osx input support