added key press directive for angularjs