Implement a controller that processes inputs from the gui or keyboard/mouse.
A simple setup is to export the
transitionTo function and calling it directly. Check out this
REPL as an example.
The example above has a bit more setup: There's some svelte stores within a separate module, assignments triggered by
on:click events and subscribing/unsubscribing within the component. If you don't want to worry about where things are within your component hierarchy, this is a guide for that direction.