So last night I was using my Raspberry Pi just fine but my internet didn't work so i fixed it with
sudo apt-get update and
sudo apt-get upgrade.
This morning I plugged it in and neither the mouse nor keyboard work, they are getting power, as they have lights on them but aren't working. I went to recovery mode and they work just fine but not in the desktop.
Also my Raspberry Pi sometimes after booting just shows a black screen, which also started this morning.