a two module keyboard with splash - resistant mechanism has a key module that can be separated by a user from a base module . one group of components becomes a detachable and user - serviceable key module , while the other group stays as the base module . the detachable module contains essentially the keycap portion that causes substantially more malfunctioning of present day keyboard components than the rest . the base module has a bay that receives the detachable key module , and contains the electrical circuitry membrane and pcb that has longer durability than the key portion . drain holes at lower end of the bay will allow liquid spillage , or water / solution if used to clean the bay , to flow out of the keyboard . depending on applications , the detachable key module can be further broken into more sub - modules . keyboards made according to the present invention are modular in nature , and are conducive to reducing the costs for keyboard related services and exchanges , costs for curing accumulative environmental hazards and costs for fitting suitable user keys for swapping among different languages and computer applications .