Allan acknowledges the narrators voice, saying that he’s confused about how there’s only one Allan. This means he hears the narrator and understands what she says.
Later in the movie, when Barbie is crying about how she isn’t pretty anymore, the narrator cuts in to say as a note to the movie creators that Margot Robbie was probably not the best casting choice to make that point. Allan, able to hear and understand the creators voice must have heard this and therefore must know that he is in a movie.
When he is attempting to escape barbieland, Allan pulls a bunch of fighting moves out of nowhere, fighting off several Kens despite the Kens being the stereotype of a strong atheletic guy and Allan being Micheal Cera. It is my hypothesis that this power and strength comes from Allan being aware he is in a movie and therefore, like in a lucid dream, able to manipulate his reality in order to pull off feats like taking on five Kens at once (in a fight). In this essay I will-
Allan was seriously like SPOON? THERE IS NO SPOON
(and i do NOT need more fodder for Tron crossovers here, but:
Al[l]an trapped on the Grid so long he forgets he has User powers, then something sparks the memory and he goes WILD)
“THIS AL(L)AN HAS USER POWER” meanwhile Flynn sitting off to the side still oblivious “And he’s just Ke(vi)n”