API Reference > imodeljs-frontend > Tools > InteractiveTool > onKeyTransition onKeyTransition Method Called when any key is pressed or released. onKeyTransition(_wentDown: boolean, _keyEvent: KeyboardEvent): Promise<EventHandled> see InteractiveTool.onModifierKeyTransition Parameter Type Description _wentDown boolean up or down key event _keyEvent KeyboardEvent The KeyboardEvent Returns - Promise<EventHandled> Yes to prevent further processing of this event Defined in core/frontend/src/tools/Tool.ts Line 565 Last Updated: 12 June, 2024