Turn off all the controlling variables when a key is pressed and turn on the one that should be on for the key that was pressed. This assumes that there are no dependencies between the last key that...