You can set up a keyboard and mouse on your PS4 to browse the web and play games, but not every game will support it.
PS4 and PS5 players were recently surprised with a free port of a classic RPG that was originally released in 2008.
You can play PS3 and PS2 games on your PS4 or PC by signing up for PlayStation Now, Sony's game streaming service.