added test for enter key event