add reaction for the keyboard