Closing onlyoffice(flatpak) stops keyboard

Every time I close only office(either from GUI or keyboard shortcut) my keyboard stops working until I click with a mouse
This behavior is unique to only office and no other flatpaks behave similarly,and I have no idea how to even begin troubleshooting
Any advice is much appreciated

Change it to FreeOffice from SoftMaker that provide .deb package.