Querying key states is done using cer::isKeyDown() and cer::isKeyUp().
cerlib provides further convenience functions that allow you to detect changes in a key’s state.
wasKeyJustPressed is true when a key was released in the previous frame, but is pressed in the current frame.
wasKeyReleased is the opposite, meaning that it detects when a key was released in the current frame.