fix the key commands