Minecraft with Xray mod won't work properly on Mac?

I downloaded Minecraft X-ray mod onto my 1.13.2 profile how ever when I load it everything works fine except for none of my keys work including my escape key. The only thing that works is my mouse controls. I'm on a Macbook pro and it runs fine on all other versions such as my optifine version just this one X-ray version. I will go and try to bind my xray keys and all I can do is left and right click on that menu only as well.

I would suggest getting a non-apple branded USB keyboard and using that. Change the keyboard layout to non-apple if you can to avoid mismappings.