Fixed many syncing bugs and added support for keyboard commands