There are a few things which could cause this issue. The most likely cause is a broken keyboard, which will need to be replaced. Another possibility is that the ribbon cable connecting the keyboard to the motherboard is making an incomplete connection. Re-connecting it may fix the issue. Finally, the least-likely possibility is that there's a problem with your motherboard.