There is also a weird caveat if R returns a scrimmage or free kick for a touchdown -- if K fouls prior to the end of the kick, R can elect enforcement at the succeeding spot, which would ONLY be the try and not the subsequent kickoff. (10-4-2 exception)
If K fouls during the return, after the end of the kick, then the ensuing kickoff is also an option.