keyboard directive working