Adding a method and tests to get the command type from a key