The present invention provides a kind of computer keyboard being able to detect the pressing pressure of keys. The computer keyboard comprises: a plurality of keys; a detecting unit, which outputs a detecting signal according to the pressing pressure of the plurality of keys; and a keyboard controller, which generates a key code according to the detecting signal and sends the key code to a digital device.