Add keycode_map.js
Move parse functions into class