@property<EOL><INDENT>def pressed_keys(self):<DEDENT>
<EOL>pressed = []<EOL>for pin in self.row_pins+self.col_pins:<EOL><INDENT>pin.direction = Direction.INPUT<EOL>pin.pull = Pull.UP<EOL><DEDENT>for row in range(len(self.row_pins)):<EOL><INDENT>self.row_pins[row].direction = Direction.OUTPUT<EOL>self.row_pins[row].value = False<EOL>for col in range(len(self.col_pins)):<EOL><INDENT>if not self.col_pins[col].value:<EOL><INDENT>pressed.append(self.keys[row][col])<EOL><DEDENT><DEDENT>self.row_pins[row].direction = Direction.INPUT<EOL>self.row_pins[row].pull = Pull.UP<EOL><DEDENT>return pressed<EOL>
An array containing all detected keys that are pressed from the initalized
        list-of-lists passed in during creation