Duplicate code-quality commit as in other repository.

Integrated in control binds (Rebind).

Included event hooks, PokeParty replacement for hard coded implementation.