Sure... I've already mentioned how to do this in other threads before, but the simplest method would have been to use the hide / show cursor action parts instead. They are more or less same as cutscene wrap, but they don't hide interfaces & they can't be skipped with esc key.
However, you could include this as a definition script....
function keyboardHandler(eventType, character, keycode, modifiers)
if Conditions["k_esc"].ConditionValue == false and keycode == eKeyEscape then return true end
return false
end
registerEventHandler("keyEvent", "keyboardHandler")
... you need to create a condition called
k_esc somewhere. To enable / disable esc key, you just toggle the condition. True = enabled, false = disabled.
All good?