Add flag 'inExerciseMode' which allowed to consume the typing events.
Split key events in GlobalKeyEvents (F1, F2...) and ExerciseKeyEvents(a, B...).