Make sure the cable from keyboard to computer is connected tightly. After that's been ruled out, it's probably a cracked or loose solder joint inside the keyboard on the female connector end. This is a common problem with IIGS keyboards. A competent technician can fix it in about five minutes.