add key events directives