How to make if the player pressed the key and hold

In the past, if I added a condition (if key pressed)

, it simulated that if the player pressed the key and held it down, it would do the action you added, but now there is no difference between

key is pessed

and keu is released

or even if there is a difference, it won’t make a difference, how do I simulate the old condition?

It shouldn’t have changed. Are you using a trigger once on the key pressed event? Can you screen shot the events?

no just key pressed alone

Hold Z

There is no key pressed by itself. It’s either a specific key, or any key pressed.

Please provide a screen shot of the events so we can understand what you are doing.

image
the animation just do first fram and freeze i want As long as I press the e button
the animation play

This means you have other animation that you allowed to play at the same time and they fight for the right to be played

Imagine this you have idle animation when player is not moving
Now you make event that when Z key is pressed then play attack animation

Now which animation should play when you are not moving and pressing Z?
For engine both should play
Unless you add to idle animation
Z key is not pressed

You cannot just allow animations to play when you want to but also need to restrict them from playing when you don’t want them to play