trying to get this key_map to use conditionals