Half part of fixing processing/processing#2099

Marking relevant keywords as functions. (Merge together with pr processing/processing#2720)