#1089 Move ch.onkeyinput event to shared.