If a key down and a key up happened in one tick, Ebitengine ignored
these events and users failed to notice the key press. This was
problematic in real world use caess, e.g. click by a tap on macOS
browsers.
This change fixes this issue by recording the tick for both a press
and a release, and determine whether the key/button is pressed or
not more precisely.
Updates #2898Closes#3137Closes#3249
Updates #3317