I don't know where to post this but I have delay with my keyboard when i play

I don’t know what’s the problem, I searched on YouTube and it didn’t help. If there’s a problem with my pc i don’t know. I have an i5 7th gen(7600 to be more specific) it has 4 cores, that might be the problem but im not sure, a 1050ti with 4 gb of memory, 2 sticks of 8gb ddr4 2666MHz. If someone can help me please do.