JavaScript Tutorial/Document/onkeyup
document.onkeyup
The onKeyUp event handler specifies what should happen when any key is pressed and then released when the Document object is in focus.
<source lang="javascript">
<html>
<head> <script language="JavaScript1.2"> </script> </head> <body> press a key and release it within this document. </body> </html></source>