Takes an instantaneous snapshot of the current state of the whole keyboard, that is, the state pressed/released of all its keys.