added code for cross browser
Merge branch 'master' of https://github.com/Matsumodo/Input.js