1. fix repeat keys will cover last one's bug 2. remove unused features