Minor debug mode improvements.
Allow to set an infinite key timeout.
Documentation improvements.