First of all your code has quite a bit too many bad practice stuff going on. Too many if statements on the one hand and badly named variables on the other. To give an example, we have the source of your problem! You have 2 variables,
isAttacking, which both mean the same thing, and you are setting the fist one to true when pressing the kick, and checking for the second one. Thats why it doesnt work as intended. Stick to one way of naming stuff to avoid these issues (for example, if you stick with "isdoingstuff" also change your jump to is_jumping). I also recomend reading up on setting up a state machine, since it will make adding more stuff easier on the future!