BadUSB Unreliable string input

Greetings, I was playing with the BadUSB function on my Linux machine and I noticed that everytime I run it, the characters ’ " / | 1 ! 6 ^ change everytime. It takes 4 to 5 tries until it gets out the correct command.