Either MB or OS. Try:1. go to safe mode. Try the KB, if work. Reload OS.2. If not, high possibility of bad MB, just buy a USB KB (just $5)