var capslock = { ... keypress: function(e) { } ... }