Add Input.isKeyJustPressed() method.

PR for issue #2200.
Use IntSet.
Use IntSet in Input classes of all backends.
Use boolean[] in Input classes of all backends.
Merge pull request #2203 from GreenLightning/key-just-pressed

Add Input.isKeyJustPressed() method.