Implement behaviours as tasks, update stupid_random.

TODO: Update other behaviours.
TODO: Fix 1-frame keyboard latency.