Update library_browser.js

Introduced browser detection at init() and a new method getKeyCode() for normalization of KeyboardEvent.keyCode across browsers.