add variable for frequently used maxRevision in onKeyup