Deprecate keypress event