Having a loaded crossbow in the offhand completely breaks game input if you attempt to perform a right click action with the item in the mainhand. For example, attempting to charge a mainhand bow when a loaded crossbow is in the offhand breaks game input. The same thing happens when attempting to perform a charge attack with a mainhand spear when a loaded crossbow is in the offhand.
Thank you for helping us improve Minecraft! We saved your files: