fix for escape getting through to next state.
sandbox game support, some input fixes