Pretty simple concept really.
vk_keycode: 'action',
For various VK_KeyCode variables, consult this guide: http://www.mods.com.au/budapi_docs/Virtual%20Key%20Codes.htm
vk_keycode: 'action',
For various VK_KeyCode variables, consult this guide: http://www.mods.com.au/budapi_docs/Virtual%20Key%20Codes.htm
Code:
Input.keyMapper = {
// ok, escape
// shift, control, tab
// up, right, down, left
// pageup, pagedown
// debug
65: 'left', // A
83: 'down', // S
68: 'right', // D
87: 'up', // W
100: 'ok', // num 4
101: 'escape', // num 5
16: 'shift', // shift
17: 'control',
33: 'pageup',
34: 'pagedown',
120: 'debug',
9: 'tab'
};