Finally made all key binding code works