In React Application when NVDA is on , the accessibility focus is getting lost when using ENTER key, but works with SHIFT + ENTER

I am working on a React application and encountering an accessibility issue with NVDA screen reader. When NVDA is on, the focus is lost after pressing the ENTER key on a button, though it works correctly when pressing SHIFT + ENTER.

Here’s the scenario:

I use the TAB key to navigate and focus on a button.
The button has an onKeyDown event that triggers an asynchronous API call when the ENTER key is pressed.
This functionality works perfectly when NVDA is off. I can use the TAB key to focus on the button and press ENTER to trigger the event without losing focus. However, when NVDA is on, using TAB to focus on the button and pressing ENTER causes the focus to be lost. Interestingly, pressing SHIFT + ENTER works without any issue.

Has anyone encountered a similar issue or can suggest a solution for this?