In your code, select the line
kb.SetCustomFilter(txt, txt.INPUT_TYPE_TEXT, "QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890 ")
at the left of the line (left of the line number of the iDE), just click, you should see a red dot, it's the breakpoint.
Then run in Debug mode, and see is this line is skipped or not.