Use new state machine to clean mouse handler, add select world call
Change processing of input for improved smoothity