Use WASD or Arrow Keys to move. Dodge anything that is red. You can't attack, you have survive until the end without losing all your hp. If you are really struggling, then click z to get infinite health. (Yes, it is possible to no hit the whole boss battle)