Centralize mapping of keys / mouse to actions.