Mouse doesn't work but keyboard does

is there something that u did to disable input?
Just go to level input and create a EVENT beginPlay node and a node called input game and UI connect the beginplay exec to it and in player controller just attach a player controller node… Solved!

also tick this as the right answer if this did help