Réagir aux touches du clavier

La page

Appuyer sur une touche du clavier...

La touche est :  

Le code

Le code HTML

<html>
<head>
</head>
<body>
  <p style="text-align:center">Appuyer sur une touche du clavier...</p>
  <p style="text-align:center">La touche est : <span id="affichage" style="padding:3px 5px 3px 5px; background-color: #aaa; border-radius: 2px; font-weight: bold"></span></p>
</body>
</html>

Le code JAVASCRIPT