Hello, as first please note I am beginning with Python and so on. Its just my hobby after work and it's just a while when i started. I created RPi car (Raspberry Zero W and motor control via L298N Bridge). I am planning control 2 motors (moving like a tank). The server UTP or UDP running on Raspberry Pi and Client running for example on Laptop. I want to server recieve from client. I want to client "logging" keyboard and if the key (we can tell "W" is pressed it sends information to server and server turn on GPIO pins for moving forward). But i got stuck in client. Just for test client create console in which you can write number 1 or 3 to turn on or turn off GPIO pins (but it dont work - console shutdown after writing a number and nothing happen). So if somebody know how I want to help create Client and improve Server to work together. Client will accepts keys like W,A,S,D for moving and send it via TCP or UDP to server. Please help. Thank you for all your replies.
*I attached my try for test (dont work)