Refactoring keyboard comands
Refactoring AI