Make sure Steam is not a Snap package - it’s known from having many issues. When locked, try to switch to tty with ctrl+alt+f3 (or 4, 5,…), login, list processes using ps -aux, find if there are any processes remaining from the game or RED Launcher, try to kill it and go back to desktop (ctrl+alt+f1 or 2) to check if it’s unlocked.