def get_keys_to_action(self):
<EOL>buttons = np.array([<EOL>ord('<STR_LIT:d>'),  <EOL>ord('<STR_LIT:a>'),  <EOL>ord('<STR_LIT:s>'),  <EOL>ord('<STR_LIT:w>'),  <EOL>ord('<STR_LIT:\r>'), <EOL>ord('<STR_LIT:U+0020>'),  <EOL>ord('<STR_LIT:p>'),  <EOL>ord('<STR_LIT:o>'),  <EOL>])<EOL>keys_to_action = {}<EOL>values = <NUM_LIT:8> * [[<NUM_LIT:0>, <NUM_LIT:1>]]<EOL>for combination in itertools.product(*values):<EOL><INDENT>byte = int('<STR_LIT>'.join(map(str, combination)), <NUM_LIT:2>)<EOL>pressed = buttons[list(map(bool, combination))]<EOL>keys_to_action[tuple(sorted(pressed))] = byte<EOL><DEDENT>return keys_to_action<EOL>
Return the dictionary of keyboard keys to actions.