With spasms; "the mouth was slightly open, and jerked violently and spasmodically at one corner".
In spurts and fits; "I began to write intermittently and spasmodically".