fixed callbacks in IOSInput. Need to retain references so the GC doesn't kill them while the native code is still using them