move time limit to update, add config for maxStep
add new hook for exitUpdate, does not limit time
add option to pass keyCode to isKeyDown