The PCB measuring tool cannot be turned off normally at certain times
Description
I'm not sure how it was triggered, but it often happens.
During my PCB drawing process, at a certain point, when you finished using the measuring tool and pressed the ESC key, you were unable to cancel the tool. At this point, the measuring tool button displayed a selected state, and the mouse arrow also changed to the measuring tool icon. However, in reality, it could not be measured and you needed to manually switch to another tool to cancel the selected state of the measuring tool.

Steps to reproduce
KiCad Version
Application: KiCad PCB Editor x64 on x64
Version: 9.0.2, release build
Libraries:
wxWidgets 3.2.6
FreeType 2.13.3
HarfBuzz 10.2.0
FontConfig 2.15.0
Platform: Windows 11 (构建 26100),64位版, 64 bit, Little endian, wxMSW
OpenGL: ATI Technologies Inc., AMD Radeon(TM) Graphics, 4.6.14761 Compatibility Profile Context 21.30.02.07 30.0.13002.7003
wxWidgets: 3.2.6 (wchar_t,wx containers)
Boost: 1.86.0
OCC: 7.8.1
Curl: 8.11.1-DEV
ngspice: 44
Compiler: Visual C++ 1942 without C++ ABI
KICAD_IPC_API=ON
Locale:
Lang: zh_CN
Enc: UTF-8
Num: 1,234.5
Encoded кΩ丈: D0BACEA9E4B888 (sys), D0BACEA9E4B888 (utf8)
Edited by Wayne Stambaugh