You need to use only 4 keys:-
*Up arrow
*Down arrow
*Right arrow
*Left arrow
When the apples will be greater than 20 or equal to 20 so the script(code) of all sprites will stop
Notes & Credits
I made it with a tiny meeny help because it is a collecting game