Get enter key using find function. Added test cases