BTW, I think we could move this function into modifyLayout(), so that we won't add any functions under global in keyboard.js.
Please note that we're going to refactor keyboard.js soon.