Added switch case so we are not setting self.active on every key press.