Keyboard Hit

Hello everyone.
Im planning to build an application which needs the force with which the keyboard key is hit.

i thought of the following:
it is a hard hit if the time gap between the keystoke and release is low, and a soft hit if the time gap between the strike and release is high.

but is there any way i can actually achieve it?Can anyone please help?

Thanks in advance.

(absolutely nothing to dowith OpenGL)
IMHO down/up time relation to key force is a quite flawed assumption, but try storing the time in a key down event, and when key up for the same key happens, compare the time difference.