Update InputEngine.js