Save and restore window views when switching states
Make keyboard controls configurable