Picrawler - termios.error: (25, 'Inappropriate ioctl for device')

When I ran the program “2.keyboard_control.py” I get "termios.error: (25, ‘Inappropiate ioctl for device’}
How do I fix this problem?
Thanks

Are you running the script with Thonny? If so, please try using Geany (also pre‑installed on Raspberry Pi OS) or run the script from the terminal with the python command instead.

You can try downloading the Debian Bullseye with desktop environment.