There’s a long post about momentary contacts in the post copied below.
The gist of it is you can detect short pulses of 0.01 seconds on the high speed inputs and about 0.5 seconds on the low speed inputs. This pulse detection speed is independent of the scan time of the programs, pulse detection is done in a high speed task separate from the lower priority program task.