Skip to content

Instantly share code, notes, and snippets.

@iamakimmer
Created June 8, 2016 04:04
Show Gist options
  • Save iamakimmer/07fa554762ff3faa215b49dc218badf9 to your computer and use it in GitHub Desktop.
Save iamakimmer/07fa554762ff3faa215b49dc218badf9 to your computer and use it in GitHub Desktop.
Onkeyup & keypress
document.onkeyup = function(event) {
var keypress = String.fromCharCode(event.keyCode).toLowerCase();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment