Video debug tweaks, debug keyboard issues resolved
Add primitive patching support