improved the imput handler to show both the keys currently pressed and the keys that have been pressed longer than the current frame