Searching for a solution to working with key-commands