The usual answer is Tennis for Two, built in 1958 by physicist William Higinbotham at Brookhaven National Laboratory and displayed on an oscilloscope. Visitors lined up to play it, which was not what anyone had expected from a laboratory open day.
Worth noting that earlier candidates exist depending on how strict your definition is — there were cathode-ray demonstration devices in the 1940s and OXO on the EDSAC in 1952. Tennis for Two is the one most often credited because it was genuinely interactive and genuinely fun, which is a harder bar to clear than merely being first.