Use the arrow keys to move. The down arrow doubles as an attack that damages the egg dragoon. Get as close as you can before you can't go further, then attack by pressing the down button. Don't hold the down button when you automatically go back, then you might glitch!