Added key event directives
Added unit tests and blur event