Mouse button events work inside the controller but not inside the player

No, you are calling the old input functions. You should setup input actions that hook into the mapping context