Add features to input handler

* single-frame key presses and key clicks
* relative mouse movements