send keys in correct format