It really helps if you give all the info. Please post all info and maybe a example flow with all possible inputs in separate inject nodes, then we can offer some suggestions.
example distinguish taps
[{"id":"eb984ad239fa4efc","type":"inject","z":"d1395164b4eec73e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":420,"y":4940,"wires":[["63a3efd6b1ea20df"]]},{"id":"63a3efd6b1ea20df","type":"join","z":"d1395164b4eec73e","name":"","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"0.5","count":"","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":570,"y":4940,"wires":[["3dbc77afa0116aa6"]]},{"id":"3dbc77afa0116aa6","type":"switch","z":"d1395164b4eec73e","name":"","property":"$count($$.payload)","propertyType":"jsonata","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"else"}],"checkall":"true","repair":false,"outputs":3,"x":710,"y":4940,"wires":[["d4d7b1ad3676c75b"],["bb1fdd45cb06e61f"],[]]},{"id":"d4d7b1ad3676c75b","type":"debug","z":"d1395164b4eec73e","name":"single tap","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":880,"y":4920,"wires":[]},{"id":"bb1fdd45cb06e61f","type":"debug","z":"d1395164b4eec73e","name":"double tap","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":890,"y":4960,"wires":[]}]