added key control