WASD or arrow keys. Doge the flying squares or slice them with sword projectiles.
Thanks to @Sui2140 for the idea of the enemy And @eyasrashid for designing the samurai and sword attack