Is there a way to attack upwards or downwards?
No, you can only attack to the left and right. This is by design to make sprite work a bit less time consuming.