enter key binding not working correctly