fixed some key binding problems