Welcome to Android Central! Force a shutdown by pressing and holding Power and Vol Down for about 20 seconds. Then follow these steps to boot into Safe Mode: https://www.hardreset.info/devices/samsung/samsung-galaxy-j4-2018/safe-mode/. Once you're in Safe Mode, you should be able to uninstall that keyboard app.