how to manipulate a string ?????

i remember that there is some kind logical flow on reading time between 2 evens but i can't come up wit anything.

When one event occurs, note the time. When that same event (or a different event occurs again, you can then subtract the previously recorded time from the current time, to get the interval.

You want to record when a key is pressed, so add the call to millis() in the case PRESSED: case.

When another PRESSED event occurs, you can compute the interval, but, you only want to do this if the SAME key is pressed.

Make sure that the variable that you record the time in is named appropriately. Time and LastDebounceTime are not appropriate for this usage.