The invention relates to the field of musical instruments, in particular to an improved photoelectric keyboard device for playing. The improved photoelectric keyboard device comprises keys, front blocks, front block 
wool rings, black and white keys, positioning pins, middle blocks, middle 
wool rings, middle block pins, back blocks, back block 
wool bars, 
key pressing stop levers, balancing weights, light-blocking sheets, limiting nails, buffering felts, printed circuit boards, a power supply, 
infrared emitting diodes, 
infrared receiving diodes and a plastic shell, wherein a keyboard consists of the keys, the front blocks, the black and white keys, the positioning pins, the middle blocks, middle circular pins, the 
key pressing stop levers, brackets, the back blocks, the balancing weights and the circuit boards; one side, which is opposite to each front block, of the right side of the keyboard middle blocks is provided with an elastic rubber bar which is approximately L-shaped; the shorter edge of the upper part of each L shape is close to the bottom surface of the central position of each key; the light-blocking sheets are arranged on the bottom surfaces of the left parts of the keys close to the back blocks. Compared with the prior art, the improved photoelectric keyboard device has the advantages that one 
infrared emitting 
diode and two infrared receiving diodes construct a photoelectric 
coupling circuit, so that balanced strength reaction, low cost and easiness is assembling are realized.