Added keyboard functionality.