Referencing functions within object properties does not work

@kdmb declared the function …

draw() will invoke that function every frame, original post only wants it to be invoked when the ArrowUp key is pressed.

3 Likes