Initial work on keyboard interaction; fix #119 (offset times).