Brian code less repetition ActionListener for keys implemented