Goal: focus the input and type a capital A via Shift+a (not Caps Lock, not pasted, not assigned). Page asserts a real Shift chord: keydown for Shift arrives before keydown for A; the A event has shiftKey=true, key==="A", code==="KeyA", getModifierState("Shift")===true; and keyup for Shift arrives after keyup for A.