adding controlling key events example