Changed to inputDomDelegate for the keypress event