Python 3.13 is currently unsupported for pynput unfortunately. You can add a comment on the issue above, that you have the same problem, but until then, try an older Python version.
pynput