I don't like forever loops. This is (almost) standard swipe code, but, without a forever loop. (in "control" sprite) Event-driven (stage clicked, sprite clicked). Touch stage (or click mouse) anywhere and swipe in any direction. Diagonal swipe not supported. Event-driven Arrow Key movement also included. "keyboard character repeat delay" and "keyboard character repeat rate" are ignored! See inside. ("control" sprite)