Key handler for iframe