I'm going to write a program that will be like the on-screen keyboard in windows, the on-screen keyboard is always in second place, after clicking it goes to second place, and I don't know how to do it in PyQt5, because it is only possible (which I found in other forums) to always display on top "win.setWindowFlags (QtCore.Qt.WindowStaysOnTopHint)"
do you know how to do it so that the program goes to the second position after clicking the button in the program?
below I have the code:

from PyQt5 import QtWidgets, QtCore
from PyQt5.QtWidgets import QApplication, QMainWindow
from pynput.keyboard import Key, Controller
import time
import sys

time.sleep(0.1)

key_push = Controller()

def window():
	app = QApplication(sys.argv)
	win = QMainWindow()
	win.setGeometry(200,200,300,300)
	win.setWindowTitle("Keyboard")

	butt_Q = QtWidgets.QPushButton(win)
	butt_Q.setText("Q")
	butt_Q.clicked.connect(lambda: key_bot("q"))

	win.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint)
	win.show()
	sys.exit(app.exec_())


def key_bot(key):
	key = str(key)
	if len(key) > 1:
		print("ERROR")
	else:
		time.sleep(2) #key test
		key_push.press(key)
		key_push.release(key)

window()