A static and stateful instance which hooks into keyup and keydown, and keeps track of all the keys pressed.