I want to do a Makro with VBA which measures the amount of time the user presses a key, for example Space. And when the user stops pressing it, the Time is stored and added to the time when the key is pressed again.
Im new to VBA and have some problems with the syntax. So I found the keyUP and keyDown functions here, but it seems that im using it the wrong way.
My code so far: