Added key handler and basic state manager