If you're in a position to use this program[0], you're already taking the same risk by running most other programs on your machine - they also have access to your keypresses.
[0]: The only real reason you wouldn't be is if you're on a non-X Linux desktop. Wayland prevents this kind of program by design.