So I want to disable all the keys on my keyboard except for 'ctrl', 'alt', and 'E'. How do I do this with the help of a command that I can bind to a keyboard shortcut. I figured out how to disable the entire keyboard using the following command xinput float 17.
Thanks
Try xmodmap:
xmodmap -pke
to find out which keys have which keycode on your keyboard.xmodmap -e 'keycode 24 = 0x0000'
replacing24
with the respective keycode of the key which you want to disable.