(function() {
  var mainSpan, shiftSpan, ctrlSpan, altSpan, nameSpan; //, metaSpan
  
  function startup() {
    mainSpan = document.getElementById("keydisplay");
    nameSpan = document.getElementById("namedisplay");
    shiftSpan = document.getElementById("shiftkey");
    ctrlSpan = document.getElementById("ctrlkey");
    altSpan = document.getElementById("altkey");
    //metaSpan = document.getElementById("metakey");
    document.addEventListener("keydown", keyCheck);
    document.addEventListener("keyup", keyUpCheck);
  }
  
  function keyCheck(e) {
    if (e.keyCode != 16 && e.keyCode != 17 && e.keyCode != 18) {
      var name = "";
      if (e.key != undefined) {
        name = e.key;
        if (e.keyCode >= 96 && e.keyCode <= 105) {
          name = "Numpad " + name;
        }
        else if (!e.shiftKey && e.keyCode >= 48 && e.keyCode <= 57) {
          name = "Digit " + name;
        }
        else if (e.keyCode >= 65 && e.keyCode <= 90) {
          name = name.toUpperCase();
        }
      }
      displayKey(e.keyCode, name);
    }
    modifier(shiftSpan, e.shiftKey);
    modifier(ctrlSpan, e.ctrlKey);
    modifier(altSpan, e.altKey);
    //modifier(metaSpan, e.metaKey);
    if (checkboxIsChecked()) {
      e.preventDefault();
    }
  }
  
  function keyUpCheck(e) {
    modifier(shiftSpan, e.shiftKey);
    modifier(ctrlSpan, e.ctrlKey);
    modifier(altSpan, e.altKey);
    //modifier(metaSpan, e.metaKey);
    if (checkboxIsChecked()) {
      e.preventDefault();
    }
  }
  
  function displayKey(code, name) {
    mainSpan.innerHTML = code;
    nameSpan.innerHTML = name;
  }
  
  function modifier(elem, on) {
    if (on) {
      elem.className = "";
    }
    else {
      elem.className = "off";
    }
  }
  
  function checkboxIsChecked() {
    return document.getElementById("blockCheckbox").checked;
  }
  
  document.addEventListener("DOMContentLoaded", startup);
}).call();

@@ -1001,24 +1001,92 @@
 ;%0A        %7D%0A
+        else if (e.key == %22 %22) %7B%0A          name = %22Space%22%0A        %7D%0A
       %7D%0A    

Update keycode.js