To connect a wired controller and mouse to your PS4, simply plug them into one of the available USB ports on the front. You'll still be able to use a standard PlayStation controller wirelessly ...
Today's consoles like the Xbox Series X and PlayStation 5 do natively support keyboard and mouse connectivity, but support in games is left up to developers and still rare. Adapters cost $100-150 ...
You just plug in your console controller and keyboard/mouse into the XIM4 device. It can make for a cable-y mess, but if I didn't already own a powerful gaming PC, this is a compromise I'd be ...