Petersburg, Keyser make state tournament; Moorefield finishes 16-17