Fixes #1: switched keyboardPressed reset to postUpdate.