fixes #97. The issue was that keyboard inputs are collected only when
Display.update() is called.