A to move left , D to move right , keep ball in glass .
Here’s ball bouncer but with a glass cup instead. Coded horribly , and way worse than ball bouncer. Sorry:/.