@rebel16—
Good, relevant reference, but in
TRON the character is trapped in a game that wasn't represented to him as VR game at the outset.
The idea of being trapped in VR is older than either
TRON or
Caverns of Socrates, but I was looking more specifically for the case of someone being trapped in what was supposed by them to be a VR game.