Attempting to subscribe to the keypress event, but failing