The issue is with the output of the arrow keys on the Mac. I had this same issue. If you do a system.out.println statement to see what it is reading from the keyboard, on macs, the output is literally an arrow sign and not a string. Therefor when you want it to change the position of your design, the code will not find the string “left”, “up” etc...