How to change the key of part of a bar

@HertzDevil how did you do this

https://www.hooktheory.com/theorytab/view/john-coltrane/giant-steps

I opened it up in HP and the key change is actually in the middle of a measure.

Maybe manual editing of the tab source?