Support Safari keyevent API.