I forgot to mention, the computer often turns on by itself when it's in sleep mode and often types words from essays I have written without me pressing any keys.
So, this all started fairly recently. Windows flash black so does the screen at random intervals, but also when I'm opening up programs. I can't open task manager to see if it's a program causing it because the program is black. I have tried to clean out my computer of dust( I built it about 4 years ago) and run Malwarebytes multiple times. No attempt to fix the problem has yielded any results besides me getting more frustrated. One thing I've noticed however is that Chrome seems to be able to run completely flawlessly. I need this computer for school so I really need help. Any ideas?