screen object has no attribute on key press code example Example: "screen attribute has no attribute onkeypress" wn.onkey(paddle_1_up, "w")