If you press space before clicking the green flag the boids will move forward, backwards horizontal and vertical otherwise they will move horizontal and vertical and they will stay away from the mouse pointer.
This project runs better at Turbowarp https://turbowarp.org/872402566