Use a uniq customKeyEventHandler for keyDown and keyPress events Mark and warn attachCustomKeydownHandler() as deprecated.