Miss Attack in a 2d timing based game

I would like to create a miss system that when the player hits the attack button and there is no enemy the player would not be able to move for a brief moment of time and a word “Miss” would pop up. Similar to the Game One Finger Death Punch

And what is the question?