No, you don’t need to buy a new keyboard if one key is faulty. Try putting the fallen-off keys back on the keyboard. If the key still doesn’t work, then you can buy an individual key from online sellers. If it is a circuit/software problem, then you will need to buy a new keyboard, otherwise not.