- Create an observer for the key events