This is a known issues seen across all third-party keyboards on iOS. This seems to be related to an Apple iOS issue.
This issue can occur when: switching between apps, unlocking your device, or using spotlight search.
Ensure that your iOS device is updated to the latest iOS version - this will help reduce this issue.
**Note: Next will always switch to the stock keyboard when entering a password**