add basic key control