def _action_a(self, key, modifiers):
        """
        Process action a key

        :param key: key triggering the processing
        :type key: int
        """
        player = self.model.player
        level = player.level
        items = list(get_items(level, player.location))

        if items is not None and len(items) > 0:
            pick_up(player,
                    items[0])

        elif is_move_legal(player, 9):
            move(player, 9)

        elif is_dig_legal(player):
            dig(player)
dataset/ETHPy150Open tuturto/pyherc/src/herculeum/ui/gui/map.py/PlayMapWidget._action_a/original