Modeling Temporal Behavior via Structured Hidden Markov Models: an Application to Keystroking Dynamics