Press the corresponding arrow key when the colored arrow hits the black arrow. If you miss, your score goes down. once the score is 0, you will have to click the green flag to start over.
Thanks to @ShiftClickLearn for base project, and some code. Art - @Fox888_8