I used to have something similar to this called "Blip," where a little light (which was the "ball") would go back and forth, and you had to hit whichever button it went next to in order to strike it back. Good times were had by all.
The real first portable game system? ILLCO ELECTRONIC MAGIC TENNIS (1968)
Rare and Obscure GamingOriginal thread: https://assemblergames.com/threads/the-real-first-portable-game-system-illco-electronic-magic-tennis-1968.37534/