how to find out if the user held down a key?

how to find out if the user held down a key?

how can I do to detect if the user presses a key remained, and when he "dropped"button?
is that possible?

sorry for my bad English ...

thanks