I had a wireless mouse and it worked without issue when I was about 5 feet away with a clear view. However another 6 inches or a slight view obstruction and it would cut in and out. I gave up and went wired (long USB extension cable).

At least in my case the issue was not the ps4 or the game, but rather the wireless capabilities of my mouse. Not sure if that is your issue, but in general wireless mice are not designed to have long range and at least in my experience they only worked flawlessly for about 1/3 there advertised range.

the keboard issue.....really wish SE would fix that.