I've been making a script which makes you unable to exit the terminal, unless you enter "yes". I've used this command to disable the Alt key temporarily.
xdotool keyup Alt_L Alt_R
I am now unable to "release" the key and my Alt key doesn't work properly anymore. I did try
xdotool keydown Alt_L Alt_R
which resulted in constant pressing of the Alt key. I did find out, that uninstalling xdotool makes the Alt key working again. Yet I still need the Xdotool. Therefore this is not a option for me.
Can you help me "release" the Alt key and neither make it pressed, nor permanently unpressed?
Some additional information:
I am using Linux Mint 18.
And my script is running with bash.