Added keyboard functionality