Simple Python program to execute commands on keypress on headless Linux