I'm making a robot car and I need a library like pygame that is able to recognize keyboard input and do a task (a created function, i.e. move forward, backward, left, right). But I need a module that doesnt bring up a GUI like pygame does and has a time delay function like pygame has. Basically everything that pygame has without the game creation part and the GUI part. Thanks.
tty library can be used. See the answers here: https://stackoverflow.com/questions/27750536/python-input-single-character-without-enter