Add support for Auto repeating Key strokes.

We use 1sec time interval to detect if the key stroke needs to be
repeated. Any change in the key stroke combinations resets the Auto
repeat mode.