added example for keyboard input in events