It depends. Standoffs create separation and stability between the PCB and case.
Some people reduce the number of standoffs in certain areas to allow more flexibility in the PCB. But, if your keyboard case material is metal, and you have no standoffs, or the PCB is flexible enough to contact the case, it can short the connections which may cause switches to malfunction or behave erratically.