There are a couple of plugins you can try, search for the word "gesture":
https://www.construct.net/forum/extending-construct-2/addons-29/c2-plugins-and-behaviors-list-42712
I think Pode's plugin can do this:
https://github.com/Pseudopode/construct2_plugins_behaviors
https://www.construct.net/forum/extending-construct-2/addons-29/plugin-unistroke-gesture-recog-44313
Yeah Pode's plugin is great, though it has some problems with recognition
or it's just me