Remove asserts that cause an exception for no-key commands