capture charCode field of keypress events to backfill keydown events