Update InputRouter.js