adding a keyhandler directive