{"action":"created","issue":{"url":"https://api.github.com/repos/ManuelDeLeon/viewmodel/issues/165","labels_url":"https://api.github.com/repos/ManuelDeLeon/viewmodel/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/ManuelDeLeon/viewmodel/issues/165/comments","events_url":"https://api.github.com/repos/ManuelDeLeon/viewmodel/issues/165/events","html_url":"https://github.com/ManuelDeLeon/viewmodel/issues/165","id":128141733,"number":165,"title":"How to handle any keypress?","user":{"login":"daveeel","id":163661,"avatar_url":"https://avatars.githubusercontent.com/u/163661?v=3","gravatar_id":"","url":"https://api.github.com/users/daveeel","html_url":"https://github.com/daveeel","followers_url":"https://api.github.com/users/daveeel/followers","following_url":"https://api.github.com/users/daveeel/following{/other_user}","gists_url":"https://api.github.com/users/daveeel/gists{/gist_id}","starred_url":"https://api.github.com/users/daveeel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daveeel/subscriptions","organizations_url":"https://api.github.com/users/daveeel/orgs","repos_url":"https://api.github.com/users/daveeel/repos","events_url":"https://api.github.com/users/daveeel/events{/privacy}","received_events_url":"https://api.github.com/users/daveeel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2016-01-22T11:54:48Z","updated_at":"2016-02-02T06:28:29Z","closed_at":null,"body":"Hi @ManuelDeLeon , I've checked the doc and tested in various ways, but can't get VM to handle keypress. So I am falling back to inserting plain inline JS and passing keyCode with Session then get VM to respond to Session change:\r\n```js\r\n    document.body.onkeydown = function(e){ \r\n     if (e.keyCode === 27 || e.keyCode === 191 || e.keyCode === 83) {\r\n       Session.set('KEYCODE', e.keyCode)\r\n      }\r\n    }\r\n```\r\nWondering what's the best way ... Thanks!"},"comment":{"url":"https://api.github.com/repos/ManuelDeLeon/viewmodel/issues/comments/178397861","html_url":"https://github.com/ManuelDeLeon/viewmodel/issues/165#issuecomment-178397861","issue_url":"https://api.github.com/repos/ManuelDeLeon/viewmodel/issues/165","id":178397861,"user":{"login":"ManuelDeLeon","id":4257750,"avatar_url":"https://avatars.githubusercontent.com/u/4257750?v=3","gravatar_id":"","url":"https://api.github.com/users/ManuelDeLeon","html_url":"https://github.com/ManuelDeLeon","followers_url":"https://api.github.com/users/ManuelDeLeon/followers","following_url":"https://api.github.com/users/ManuelDeLeon/following{/other_user}","gists_url":"https://api.github.com/users/ManuelDeLeon/gists{/gist_id}","starred_url":"https://api.github.com/users/ManuelDeLeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManuelDeLeon/subscriptions","organizations_url":"https://api.github.com/users/ManuelDeLeon/orgs","repos_url":"https://api.github.com/users/ManuelDeLeon/repos","events_url":"https://api.github.com/users/ManuelDeLeon/events{/privacy}","received_events_url":"https://api.github.com/users/ManuelDeLeon/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T06:28:29Z","updated_at":"2016-02-02T06:28:29Z","body":"Got a repro?"}}