added support for pause and send keys