code: function keyboardCapsLockLayout(layout, caps) {
      return layout.map(function (row) {
          return row.map(function (key) {
              return isSpecial(key) ? key : (caps ? key.toUpperCase() : key.toLowerCase());
          });
      });
  }
docs: Function to change specified layout to CapsLock layout.
  
  @param {KeyboardLayout}  layout
  @param {boolean}         caps
  @returns {KeyboardLayout}