Calculate keypress time

Hi guys,
is there any way to calculate how long a key is pressed?

You could try this :

  • if key pressed, trigger once - > start a timer
  • if key released - > you have your keypress time
3 Likes