Simple keyboard monitor with three events: key pressed, key holding and key released