var vkey = require('./index') document.body.innerHTML = '

Type into the input box. \ You should see either the uppercase letter or lowercase symbol you just typed.
\ Or, if it\'s a control key, you should see the <name> of the key.
\ If you note an inconsistency, open an issue on the vkey repo.
\ Please include your browser and version, operating system, and if possible your keyboard type.' document.body.appendChild(document.createElement('input')) var pre = document.createElement('pre') document.body.appendChild(pre) if(document.body.attachEvent) document.body.onkeydown = function(ev) { ev = window.event pre.textContent = pre.innerText = 'keyCode is '+ev.keyCode + ', vkey is ' + vkey[ev.keyCode] return false } else document.body.addEventListener('keydown', function(ev) { ev.preventDefault() pre.textContent = pre.innerText = 'keyCode is '+ev.keyCode + ', vkey is ' + vkey[ev.keyCode] }, true)