I noticed today that when running Minecraft forge 1.15.2 it will not let you attack, you can break blocks but you cant swing into the air or attack any creatures, I swapped to vanilla 1.15.2 and tried and it worked fine, I even reinstalled forge and uninstalled all my mods and the bug persisted. I tried to find debug logs to show you but I could not find any in my logs folder.