KSS 8.4 for System Integrators.
Page 424.
I modified it a bit to match my variables but the issue is that I got no response from the robot on the touchpad when the interrupt was triggered.
But thank you very much, panic mode.
The break was missing in the sub program and as soon as I added this the interrupt worked.
On the real program I enable and disable the interrupt only during the search and I use only the correct interrupt number, not all of them.