Unfortunately I also didn't understand what to do, even after many replays. It seemed the only way I could avoid 'dying' was to spam spacebar. Up/Down seemed to have little effect. Spamming any keys to hack felt like the opposite of hacking.
The character was my favourite element.