Part 2: connecting the keyboard to the entity