added features to keyboard.js and gamepad.js