Do you need to use that specific library? You can achieve similar functionality with built-in modules:
import sys, select
i, _, _ = select.select([sys.stdin], [], [], 5)
print(f"Input: {sys.stdin.readline().strip()}") if i else print("No input given")
This will wait for user input for 5 seconds, but requires you to press the enter key to confirm your input, in which case it will also end the timer early.