YunhaoKeyboards work with Ps2, Ps3 and Ps4. Mice unfortunately do not work on PS OS for gaming. You would have to use a 3rd party device and/or adapter such as a Xim4, KeyCommander or the Hori Tactical Assault Commander Pro. There is probably more devices to be used but from what I hear the best to use is a Xim4 granting the user 1:1 signal input.
YunhaoOh yeah, I did forget to mention that you can use remote play thru your PC for your Ps4 as well. You do have to use some type of 3rd party software to remap the controller actions/button layout to keyboard and mouse. I have done it myself personally and it is not too bad. Granted that you do have a decent to good connection from your net as well a decent router. Just download the Ps4 Remote play app which is free and install. I don't know how many 3rd party software exists for remapping Ps4 controllers to PC, the one I used was called REMAP. I believe it cost around $12-$15 USD.