Added key event sample