At the start, press the flag and then let the cat do its trick. When he disappears, press space and then press the flag again.
I liked the way a studio about magic I know has magic cat and it inspired me to do a disappearing magic cat for a magic trick.