added possibility of keybord control