Offered every keydown that reaches the canvas (never from editable
targets, and only within the viewport's keyboard scope) BEFORE the
shortcut map. Return true to consume it (default prevented, no shortcut
runs). Listeners are owned by the viewport, so a tool holds no DOM
subscriptions and deactivation cannot leak.
The gesture was taken over (a second pointer started navigation) or the
platform cancelled the pointer. Optional: tools without it receive
onPointerUp instead, exactly as before. Implement it when "up" and
"abandon" must differ (a multi-step tool must not treat a pinch as input).
The gesture's history transaction is still committed afterwards (an
in-progress store mutation must never be left open); a tool that wants
abandon semantics must revert its own store mutations before returning.
Draws an empty frame around a dragged rectangle.