You can do that. It's possible to prevent the escape from registering with the new keyboard event handler / listener.
function keyboardHandler(eventType, character, keycode, modifiers)
if Conditions["esc_active"].ConditionValue == false and keycode == eKeyEscape then return true end
return false
end
registerEventHandler("keyEvent", "keyboardHandler")
...if condition esc_active is false then escape is disabled. It's simply a matter of toggling the condition to activate & deactivate the escape key. This will allow you to prevent skipping of cutscenes or certain parts of it, or whatever you want. I think movies will still be skipped with esc regardless, though.