If your indentation is off by even one space, or if you use an if where an elif was required, the program won't behave as expected. Tips for Success
def onKeyPress(key): print("Key pressed:", key) 6.3.5 Cmu Cs Academy
: Using Group() allows you to move multiple shapes at once by changing just one coordinate (like group.centerX ). If your indentation is off by even one
To make an object bounce, you must check its edges against the canvas width/height. 6.3.5 Cmu Cs Academy