Solved! Keyboard sometimes work, sometimes doesn't

Oct 18, 2021
OK so i bought his new mechanical keyboard, and it works perfectly fine, but for some reason the keys sometimes dont respond, ill explain, sometimes when i press k (it happens to all keys) 10 times, sometimes it only presses one, i play alot of rhythm games so i hate it, please help :(